Listen, punk, I HAVE been posting my *actual* code, I have even been posting edits I've made and telling you where I've been putting them. If you are not smart enough to understand what that means,...
Type: Posts; User: kowit010
Listen, punk, I HAVE been posting my *actual* code, I have even been posting edits I've made and telling you where I've been putting them. If you are not smart enough to understand what that means,...
When I do this:
int main(void)
{
menu();
while (ch != '4')
{
switch (getchar())
Nope, that didn't work because now I cannot exit when I enter 4.
That's exactly the model I used and it made absolutely no difference. The getchar() function is causing problems for me which is why I have to use int.
What commontater posted, that is
Like this stuff posted above:
int quit = 0;
while (! quit)
{
// display menu
switch ( getchar() )
I tried that and it made no difference. Any integer I used yields me the error message and it still does the cascading error when I enter a letter or symbol.
In this array program I have due on Tuesday in my C programming course at school (which includes a menu function), I have tested this compiled program for any bugs. One major problem I found is the...