ok...i'm trying to create a program where a user's data can be kept....i've attached the program...can someone try and help me....in code, not just in writing??????
ok...i'm trying to create a program where a user's data can be kept....i've attached the program...can someone try and help me....in code, not just in writing??????
i had extracted some code snippet...
int main ()
{
FILE *f;
f = fopen(name, "r+");
intro();
if(intro() != 1)
init();
options();
fclose(f);
return 0;
}
you see in main function, you declared FILE *p but never used it.
as of now i cant go over to your code, but try this main at least
int main ()
{
int i;
FILE *f;
f = fopen(name, "r+");
i=intro();
if(i != 1)init();
options();
fclose(f);
return 0;
}
i'll try to look again at your code later
" programming is 1% syntax and 99% logic "
ok...i can open using fopen, but can anyone actually help me in terms of writing up data in the program, which would be saved for any user and then when the user returns, all their initialised data entries are saved and ready for them to continue with the program???