cdalten i need your help check this out or someone that can help me... thanks
Hi everyone i like your help with this program. it runs good on windows but i want it to work in linux gcc. The add function works but when ti comes to the save, find, print, load etc...
they dont work as they suppose to. I have been messing with this a while and iam totally stuck and dont know what to do
i would really apreciate your help.
thanks for your help and time
Wise Ron :confused:
i get 4 erros changing from gets() to fgets()
I try to fallow what you sayed, thanks. I will stick to gcc thats what i need the code running on gcc. Windows is ok , but sometimes it sucks.
This are the errors i get when i change the gets() for the fgets().
I put in all of the files i change the faloowring: fgets(buffer, sizeof(buffer), stdin);
can you guys help me out i dont know what to do...
Thanks a lot
user@XANYQIO8N50:~/TOMS/onefile$ gcc -o good good.c
good.c: In function `main':
good.c:592: error: too few arguments to function `fgets'
good.c:592: error: called object is not a function
good.c:664: error: too few arguments to function `fgets'
good.c:664: error: called object is not a function
good.c:716:2: warning: no newline at end of file
Thanks to you all i have improve. I have somethings i want to fix
Iam new to this forum and new to c programmin. Help me if you can ;)
The program compiles and it works ok until certain extend. This are some few things that i see the program is not working as it suppose too.
1. The save function or when i save a new question and the answers. It prints "write operation completed sucessfully", but underneath it prints the menu again and it says "illegal command". Question: how can i make that second menu option appear and the illegal comand print, is not suppose to work like that
2. Almos the samethings happens with the load function. When i try to retrieve the data from the question.dat.
3. When i l select print in the menu. It gives me the result null for question and the answers.
How can i make this improve and work correctly :confused:
here is the souce code in the attachment. This is what i have so far.
Thanks for your help, iam learning fast and alot.
Need help! comp;iling with linux gcc
Salem i have done what you told me what to do next.