Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
for C
getchar(): // wait, not totally portable
for C++
cin.get(); // wait
Caveat, if a lose return is floating about, like after an input you might have to double line it.
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
getchar(): // wait, not totally portable
What is not portable aboutgetchar?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
What is not portable about getchar?
Sorry Dave,
I am getting old. Got it confused with getch(). The C function getchar() should be totally portable.
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417