View Single Post
Join Date: May 2008
Posts: 560
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 90
Murtan Murtan is offline Offline
Posting Pro

Re: Please help with this menu

 
0
  #2
Jan 8th, 2009
I'll try and look at it anyway, but if you have an error, why don't you include where the error came from (almost all compilers will give you a line number).

Also, when posting C code, please use C code tags [code=c]/* code here */[/code] like this:
  1. /* code here */
to get line numbers and syntax highlighting.

Your code has:
  1. void load(void), list(void);
  2. void insertend(void), void modify(void);

It should be: (You're declaring functions, not variables)
  1. void load(void);
  2. void list(void);
  3. void insertend(void);
  4. void modify(void);

Your posted code did not define void insertend(void) or void modify(void)
If you're not prepared to implement them now, declare them as stubs:

  1. void insertend(void)
  2. {
  3. }
  4.  
  5. void modify(void)
  6. {
  7. }

Your menu has two options 6's:
  1. printf("6. Load the file\n");
  2. printf("6. Quit\n");
maybe one should be 7?

When I ran the program, it stopped taking names when I entered a blank name. It then re-displayed the menu.
Reply With Quote