Posts by xGlover • 36 points
2 posts
-
0
votes1
answer493
viewsA: Copying the contents of a file to vectors in c
I would exchange the functions you are using to capture the file data. char nome_prod[100]; char cod_prod[100]; int quant_prod; float preco_prod; while (1){ if(feof(fp)) break;…
-
2
votes1
answer282
viewsA: Problem inserting elements in a queue
Well I rewrote your code with some changes because the way it was the logic was a little confused. Sorry for my edited reply. Your code at first in main was only with the declared struct with…