Questions tagged as 'c'

2
answers

Problem reading characters with Scanf in C

I have a problem with the following program: #include <stdio.h> int main() { char a, b; printf("Ingrese el primer caracter:\n"); scanf("%c", &a); printf("Se leyó el caracter: %c\n", a); printf("Ingrese el segundo...
asked by 02.08.2017 / 18:58
0
answers

how can I register a sale, and not delete all the information about the product of the file?

when wanting to register a sale and to update the file correctly works correctly with the last and last product stored in the file but when wanting to sell the first product the information disappears, or the rest of the record is deleted, leavi...
asked by 12.08.2017 / 04:43
1
answer

fwrite does not write to file C

I have a problem with a program that I am writing. What I intend is to open a file written in binary with account data, this includes a header with information of the data it contains. What I'm doing is reading that file and the data writing...
asked by 11.06.2017 / 02:14
1
answer

Implement & background in my own shell in C?

I'm trying to create my own shell in C, so far I've gotten it to do everything I need correctly but I'm looking for ways to implement the asynchronous synchronization of when you type & behind a statement or command (also called background),...
asked by 07.05.2017 / 16:24
0
answers

Error in c: relocation truncated to fit R_X86_64_PC32 against undefined symbol

I'm doing a program in c in which I have two libraries, vector.h and entero.h, this second created from vector.h. In the main I use the functions of the entire library.h, but I have a warning that says: relocation truncated to fit: R_X86_64_P...
asked by 01.05.2017 / 20:14
0
answers

Capture plot, save it in memory and display it in lcd

I am currently developing an app in android that sends a string to a bluetooth module HC06 and is picked up by a pic 16f883. I created an interruption that makes it appear on the lcd when the plot arrives, but I do not know how...
asked by 19.07.2016 / 18:05
1
answer

Print maze by means of its coordinates

good. I have a labyrinth like this: ************* * F* * **** * * * * ** * * * * ** *** * * *S * ************* And I would like to print it in the program by means of loops, but I am getting a problem which is the...
asked by 04.11.2018 / 06:19
1
answer

Thread stopped C: \ ... Fault: integer divides by 0x401203 error in borland 5.02

Borland use 5.02 for a college job ... and for some reason the program is not able to assign variable values in other variables to simple mathematical functions. This is my code: #include <stdio.h> #include <conio.h> main() {...
asked by 11.04.2016 / 00:54
3
answers

Number of digits when using printf

My query is quite simple, but I can not find the answer. I need to specify the number of digits to be printed when I use printf with an integer. Specifically, I always want to print 5 digits, regardless of whether my whole number has an amoun...
asked by 24.11.2016 / 22:31
1
answer

Operation of strtok and strcmp

I do not understand how this function works. Could you explain it to me in pseudocodigo step by step? I know it serves to censor but I can not understand how strtok and strcmp work. Greetings. #include<stdio.h> #include<string.h>...
asked by 24.10.2016 / 05:05