Questions tagged as 'c'

4
answers

Repeat Loop in C

Hello, I'm a beginner in programming and I have a question: I'm doing a program that has a menu and a register to be performed by the user. I would like to know how to make the program menu always appear after finishing the registration, instead...
asked by 29.09.2017 / 02:25
3
answers

C program "eating" characters when executed

Next, All IDEs I program in C are outputting with characters less than each iteration. For example, when executing a for, at each iteration one or more characters are added: NotethatinbothnetbeansandDevC++,thesameerroroccurs.Ithinkit'ssomet...
asked by 03.02.2017 / 23:50
2
answers

doubts interleaving vectors in C

Hello, I have a problem here with vectors I would like to understand what is going wrong and I am having difficulties, if anyone can help me about it. #include <stdio.h> #include <stdlib.h> int main() { int vet1[5], vet2[5], r...
asked by 06.08.2014 / 04:38
3
answers

How to transform, for example, "0" into "ZERO" in C? What problem in this code?

I have to make a college program whose main purpose is another one, but in one of the program steps, I need to pass two whole random numbers from 0 to 9 to their extensive written forms, in string . I wrote a few snippets of code that would do...
asked by 24.05.2014 / 15:55
1
answer

Operator & e * in functions

What is the meaning of this & in the front of the array (my function only works with & amp ;, I'm overloading cout <
asked by 03.10.2016 / 07:14
2
answers

What does the expression 'system (' pause ')' do?

What is the command for? system("pause"); ?     
asked by 11.12.2018 / 17:54
2
answers

Why am I having problems with 'scanf' in C?

Hello, I'm trying to make a very basic cmd, but I'm having problems ... My code: #include <stdio.h> int main() { char arg[300]; scanf("print '%s'", arg); printf("%s", arg); fgetc(stdin); fgetc(stdin); return...
asked by 31.08.2018 / 23:51
2
answers

I can not copy the characters from one string to another [closed]

I am doing a program that until the user type +, the typed string will be copied to another, for example stack +, the copied string would only stack, I tried to make the code below only that did not work. #include <stdio.h> int main(int...
asked by 03.04.2018 / 19:43
2
answers

What do I need to fix? [Error] ld returned 1 exit status

I can not compile this code at all. I've already gotten the &'s within the scanf's and printf's and nothing to change the final result. Where do I need to change my code? #include<stdio.h> #include<conio.h&...
asked by 12.12.2016 / 20:16
2
answers

Free () in struct with char array

I have struct struct data { int code; char name[50]; char feature[30]; }; typedef struct data Data; and the function: void free_data(Data *data) { if (data != NULL) free(data); } But free () is not making the...
asked by 22.10.2017 / 00:40