for(j=0;j<28;j++)
{
fread(&v[j],sizeof(CURSO),1,f); //for reading the file to the array
}
for(j=0;j<28;j++)
{
fwrite(&v[j],sizeof(CURSO),1,f); //for writing the array to the...
Type: Posts; User: Astoria
for(j=0;j<28;j++)
{
fread(&v[j],sizeof(CURSO),1,f); //for reading the file to the array
}
for(j=0;j<28;j++)
{
fwrite(&v[j],sizeof(CURSO),1,f); //for writing the array to the...
Ok thanks. I'm going to try that.
Aval *n_data, and float *n_aval are two arrays which size I don't know. So I have to declare them with a pointer so i can alocate memory when i need to store values in the array. Am i right?
So how...
I'm having trouble writing the folowing structure to a binary file:
typedef struct
{
int day, month, year;
} Aval;
typedef struct