Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Unseen error
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Richard Heathfield, post: 1693985"] [Followups set to acllcc++] [Because you crossposted your article to (among other places) comp.lang.c, this reply assumes you are programming in C.] If you have a C99 compiler, // comments are legal. If you have a C90 compiler, they are not. If you have a C90 compiler, implicit int return type is legal. If you have a C99 compiler, it is not. So, either way, you have a syntax problem. The behaviour of fflush on input streams is undefined. [i] What if the user types something that isn't a number? [i][i][i] The 'more' is a single character. %s expects a pointer to an /array/ of characters. You meant %c, not %s. In any event, an unadorned %s is unwise (because of buffer overruns). Fix those problems, and re-test. This will uncover more problems, but should also lead to greater understanding. Please pick your newsgroups more carefully next time. Thanks. (I think you are best off in alt.comp.lang.learn.c-c++ at present, but comp.lang.c is a decent alternative in this case. The other groups to which you posted are really implementation groups, not language groups.)[/i][/i][/i][/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Unseen error
Top