Posts by Iagor • 21 points
4 posts
-
1
votes2
answers229
viewsA: How to receive a character array in C with for?
The way to fill the matrix is with 2 for’s even, this part is correct, it happens that the way your code is reading a character you typed and then the next scanf will read the "enter" you give when…
-
0
votes1
answer197
viewsA: Program Received Signal SIGSEGV, Segmentation fault
The problem is that you create an array of Agenda pointers, the correct way to do it would be: Agenda agenda_prof[P]; cria_agenda(&agenda_prof[tam_agenda],tam_agenda, nome,ano); The vector you…
-
0
votes3
answers170
viewsA: How to query a struct array in C after you have already written on it?
Just declare this snippet only once outside of any method, just like with the variable "Qc": int qc = 1; struct usuarios info_user[qc]; struct usuarios *ptr[qc]; The way you are using the pointers…
-
1
votes3
answers170
viewsA: How to query a struct array in C after you have already written on it?
The program has several structuring errors, the way you are using the operator switch that is causing this problem that you refer to in your question. that operator has the following operation:…