CompuServe Messages

#C problems

    01-Mar-91 15:16:55
Sb: #C problems
Fm: Henry Williams 73527,1446
To: all
Hi Amiga folk! I have 2 puzzles on my mind right now and would appreciate any help. 1) I can compile this without errors on my Aztec 3.6a but when I link I get this message: Undefined symbol _printf it is in reference to the default: choice of the switch however it looks clean to me and when I put it in remarks I can link normally. Problem 2) after starting the program, getchar() accepts the choice ok however, the next time through it is bypassed and goes to the default choice. It then stops on the third time through and accepts a choice normally again. Thanks for any help………….Henry #include <stdio.h> main() { int go = 0; char c; while (go == 0){ printf ("\t (V)iew File (C)hange Record (A)dd Record\n"); printf ("\t (H)ard Copy (D)elete Record (Q)uit program\n"); c = 0; c = getchar(); switch (c) { case 'v': /* Note irrelevant code removed */ break; case 'c': break; case 'a': break; case 'd': break; case 'h': break; case 'q': go = 1; break; default: printf ("something to print\n"); break; } /*end of switch*/ } /*end of while loop*/ } /*end of main function*/