Re: [Dev-C++] Compiler and Linker Output
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Robert D B. <lon...@ju...> - 2001-02-26 19:52:27
|
Very hard to establish what the problem might be given only "snippets".
However, I see one error :
printf ("enter your choice: \n); // no closing " before new
line.
I would think the compiler would flag this as a parse error. If you will
attach your code
On Mon, 26 Feb 2001 14:32:58 -0500 "Mitchell, Tamra (HNA)"
<Tam...@hj...> writes:
I believe this answer has circulated once but will someone respond again.
My mailbox fills up quickly so I had to delete the inquiry.
When I compile and run my program I get what seems to be an error message
that indicates undefined references to instructions.
Here are snippets of my code that refer to instructions (only)
void instructions(void); /* prototype for instructions */
instructions(); /* display the menu */
printf("? ");
scanf("%d", &choice);
switch(choice)
default:
printf("Invalid choice. \n");
instructions();
break;
/* Print instructions */
void instructions (void)
{
printf ("enter your choice: \n);
}
I can't see the error can any one help?
Thanks
Tamra Y. Mitchell
Heinz North America
Operating Systems Analyst
(412) 237-5232 Work
(412) 996-9078 Cell Phone |