Posts by Lucas Correia • 53 points
14 posts
-
-1
votes1
answer634
viewsQ: How to compare string in text file with user imput and do validation?
At the end of this code, I’m trying to read the names of some countries and compare with user input, but I’m not getting results. It keeps repeating. If it finds, the program has to follow the flow…
-
0
votes1
answer51
viewsQ: How to check if a code contains 3 letters and 4 numbers in this order?
I am assigning the return of the function checks code to a flag. The idea is to make the flag trigger the loop if the code is incorrect char *leValidaCodigoAviao(char *msg, char *msgErro){ char…
-
0
votes1
answer66
viewsQ: Why Does My Function Bubblebest Doesn’t Rotate?
I’m wanting to call the bubbleSort code but it does not appear to run and I can’t figure out the problem since it shows no error. #include <stdio.h> #include <stdlib.h> #include…
-
0
votes1
answer69
viewsQ: How to allocate space for each structure of an array as the user wishes?
Guys, how do I allocate one structure whenever the user wants to allocate another one? How do I make this increment? I’m putting a code here just so you can understand my problem. #include…
casked Lucas Correia 53 -
0
votes1
answer89
viewsQ: Why don’t you get in the loop?
I’m storing student names and grades and trying to display name, grades and media. The problem is that the program is skipping the loop of notes and is only taking the name. #include <stdio.h>…
-
-4
votes1
answer50
viewsQ: Why don’t my strings concatenate correctly?
I want to display information in the following format: last surname/first name. But it keeps skipping a line in the concatenation. At least, that’s what I think is happening... #include…
casked Lucas Correia 53 -
-1
votes1
answer169
viewsQ: How do I overwrite a string with another accent without?
I wanted to replace the accented characters with others without and generate a new string, only that there seems to be something wrong in the comparison I’m trying to do in the function…
-
2
votes1
answer71
viewsQ: How to print only once the name repeated?
For one or two names repeated, it works well, but if I make them all the same he repeats them ten times. I’ve tried using flag, but I can’t understand the reasoning. #include <stdio.h>…
casked Lucas Correia 53 -
-1
votes1
answer80
viewsQ: Why is my string not converted to lowercase?
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> /* Lucas Correia Síntese Objetivo:Ler o nome de duas…
-
0
votes1
answer156
viewsQ: How to pass, by reference, a vector of structures to a function?
I’m having great difficulty understanding the reference passage of a structure vector. No running error happening, but not sure if I am reading the file correctly there. #include <stdio.h>…
-
0
votes1
answer71
viewsQ: Why does the function leValidaText return trash?
I’m trying to validate the license plate of the car, but I’m not getting it. I tried to use the scanf instead of fgets and nothing. I have no idea what might be causing the problem. #include…
-
0
votes2
answers1230
viewsQ: How do I return only the highest value within an array?
It does not correctly check the largest. For each animal it shows the weight of the animal as being the largest. #include <stdio.h> #include <stdlib.h> #include <string.h> #include…
-
0
votes1
answer93
viewsQ: How to pass the registration code as a function parameter?
I have to sort down the salaries of employees of a company. Entree: Tuition, salary, if you wish to continue Exit: Wages in descending order. The error that is appearing is the following: [Warning]…
-
1
votes1
answer78
viewsQ: How to assign a treated value in the function to my vector?
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define TAM_Min 1 #define TAM_Max 500 /* Sintese Objetivo: Classificar animais de um zoologico…