Making a program module for patient management. But it's not working properly. What's wrong?

http://ideone.com/e.js/qxX7AS
(The program code was too long. Hence, please follow the link to the program code. Also, I am not using the website's compiler to run the program. I did that just to make the program code available.)

Viewing a patient, viewing all patients, etc. are not working properly (everything that searches according to ID). Only the add function is working properly.

Also, it doesn't go back to PAT() when main() is called.

How can I fix these problems?
Last edited on
> I am not using the website's compiler to run the program.
I cannot compile your program because of a missing process.h


> Also, it doesn't go back to PAT() when main() is called.
It is forbidden to call main(), no idea what your compiler may be doing there.

1
2
3
4
5
void foo(){
   //...
   bar();
   //whatever code is here would be executed when bar() ends
}

Your code is quite hard to read, you should learn to use loops.


> Only the add function is working properly.
¿How do you know that?
I checked
Also, now the view all function is working but the ID is always 0.

And what do you mean by using loops?
Topic archived. No new replies allowed.