I already mentioned I needed a code for remove rows in the file. I have that code now, and in fact it works, but every time I use it, the run fails. I don't know how to fix the problem...
Thanks...
Type: Posts; User: Jessijow
I already mentioned I needed a code for remove rows in the file. I have that code now, and in fact it works, but every time I use it, the run fails. I don't know how to fix the problem...
Thanks...
Thanks for all the help!! I already solved the problem in the 'for'. It was a & that shouldn't be there...
If I have more difficulties in this work, I'll ask again in this thread, and I'll edit this...
That is what appeared in the output:
Código Meteorológico,Código da Cidade,Temperatura máxima,Temperatura mínima,Humidade,Pressão,Data
size: 1
RUN SUCCESSFUL (total time: 252ms)
...
Yeah... "meteorologia.csv" should be "meteo.csv". I think everything other than this is translated, except the first comment, but that's not important...
Sorry, I'm not understanding what you're...
city_t *read_meteo(const char *filename, size_t *len) //le a informacao meteorologica do ficheiro{
if(filename == NULL || len == NULL)
return NULL;
FILE *fp = fopen(filename,...
Thanks for everyone's help!
Sorry, I didn't see that part! But it doesn't work, the program compiles but after displaying the information, the run fails.
Thanks for the help!!
I have those two fuctions, in fact. If it's necessary, I edit my first post and add them.
I will try to do the way you advised me.
EDIT:
It worked! Thanks!
(Do you have...
Hello! I'm doing a project in C for college, where I have to use .csv files. It's almost finished, but I need some help. I created a account on Stack Overflow, but some of the other users treated me...