Posts by soAna • 129 points
11 posts
-
1
votes1
answer938
viewsQ: How to copy the contents of two files into a third file in c?
I need to create a file that is a copy of the contents of two other files (already existing), the user will type the name of these two files. In my case, the first file contains: "hi, banana,…
-
0
votes1
answer57
viewsQ: reversing a long sequence in c
I need to invert a sequence of numbers, for example, if 1234 is inserted, I print 4321. The code is working, but for Type 0123 or Type 1230 entries the zero is simply "deleted", but I needed the…
-
1
votes0
answers28
views -
0
votes1
answer191
viewsQ: password confirmation in c
I need to register N people in my program with only two information: name and password. Then the user enters a name, if this name is not registered the program displays a message of no registration…
-
1
votes3
answers2111
viewsQ: Comparing C string contents to find palindrome
I need to check whether a string The, for example, is equal to string B to determine if the word inserted is a palindrome, the problem is that a string B is the reverse of A, I’m not able to…
-
0
votes2
answers1127
views -
0
votes1
answer65
viewsQ: array type has incomplete element type
I am not able to compile my program, the compiler keeps accusing "array type has incomplete element type" in the function that prints points. The function that prints dot: float imprimePonto(struct…
-
1
votes2
answers5472
views -
1
votes2
answers5595
viewsQ: How do I validate input in c?
My problem is that I have to force the user to enter a whole value only, if he puts anything else (characters or decimals) I have to make him type again. I’ve already tried to validate scanf but it…
-
0
votes1
answer391
viewsQ: Validation of scanf in c
I have a problem that I need to validate an entry to receive only integers, if I do not receive, I must force the user to enter an integer. I cannot disregard numbers after the comma (in the case of…
-
5
votes1
answer558
viewsQ: How to access the indexes of a very large vector in C?
I have a problem that I have to assemble a vector (vet2[50]) with the sum of a large vector (vet1[100]), this vector vet1 is provided by the user and the sum if provided by: vet2[0]=vet1[0]+vet1[1]…