Posts by Leonardo Minari • 106 points
4 posts
-
1
votes2
answers112
viewsA: Help fread C library function
Your fgetc() in the check already moves on to the next element, instead I recommend you use: while(feof(arquivo)){} Rewind() back to the beginning of the file, fseek() is a rather more complicated…
-
3
votes3
answers75
viewsA: Error reading all records from a.txt file in C
The function Rewind() (roughly speaking) serves to return to the beginning of the file, ie fread passes on but the Rewind goes back to the beginning.
-
1
votes1
answer1490
viewsA: How to create simple circular chained list in C ?
The simple circular list is defined by instead of the next of the last to port to null, points to the first of the list. Aluno *novo = criar(); if(novo->id < 0) break; aux->prox=novo;…
canswered Leonardo Minari 106 -
1
votes2
answers1061
viewsA: Remove element from a Vector in "C"
I haven’t seen your whole code, but the simplest solution that came to mind is: Since you already have the elements that are both in A and B, do a "scan" (inside another for) by placing in vector B…