Questions tagged as 'c'

1
answer

From "unsigned char" to Decimal using printf

I have the following code by which I connect to a sensor and I receive data from it that I keep in variables type "unsigned char" #include <18f2550.h> #fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN #U...
asked by 17.12.2018 / 13:04
1
answer

C ++ error when making an input with cin or getline (std :: cin, var) returns a loop when writing with spaces or a v

When requesting data and placing a space, when using cin > > temp.name ;, it gives me an error that causes a loop of the 2 while at the same time or, when using getline (std: cin, temp.name);, the question jumps to me. The code is as follo...
asked by 12.12.2018 / 19:15
1
answer

List simply linked in C

Hello, I tried to execute this code but when doing it it says that the exe has stopped working .. it does not show me any syntax error, please I would like you to indicate the error. #include <stdio.h> #include <stdlib.h> typedef...
asked by 25.06.2016 / 10:49
1
answer

Order of getopt () arguments in C

I need to use two arguments with one parameter each, only that in case of grouping them the parameter serves for the two arguments. For example: miprograma -a 45 miprograma -b 45 miprograma -ab 45 I do not know if it is understood, I a...
asked by 24.10.2018 / 15:19
1
answer

How can I get the program back to the menu?

#include<stdio.h> #include<conio.h> #include<math.h> void problema1(void); void problema2(void); void problema3(void); void problema4(void); void problema5(void); void problema6(void); void problema7(void); void problema8(void...
asked by 14.10.2018 / 23:31
1
answer

Convert from int to char in C

My question is about how to convert from int to char in C language. It's the equivalent to doing in C #: int a = 97; char b = (char)a; Console.WriteLine(b);     
asked by 09.10.2018 / 23:43
1
answer

return in exit parameters and in your name? C functions

I am new to programming, and I have a confusion with this topic. I do not understand very well this about the output parameters and what the function returns in its name. I give an example of exercise. "Write a function that receives an array...
asked by 05.09.2018 / 03:22
1
answer

Unexpected closure before requesting data

Find the division of two numbers recursively the executable only asks for the first digit and then closes without asking for the second digit. #include<stdio.h> int division (int a, int b); int main (){ int a, b; printf("Digite e...
asked by 03.09.2018 / 16:35
1
answer

Binary files in C language

I have a question of how to store in a variable of type char a name among several saved in a binary file in C language, besides that the name is selected in a random way, to then show the name saved by means of the variable this is the...
asked by 21.06.2018 / 07:25
1
answer

Operations linked lists

I'm with the subject of linked lists. Especially with the list simply linked. I have seen the typical operations that can be done with this type of structure: add by the beginning, by the end, eliminate nodes, display the list, search for elem...
asked by 21.06.2018 / 19:12