I came upon this site and was glad to see such a wealth of info. Like many here, I am new to c++ (but not to programming) and experiencing a silly problem.
I'm writing a simple program to open a text file, print out the ASCII codes of the file, then do some simple statistics like... count the total number of charaters, numbers, whitespaces...
Anyway... I seem to be able to either 1 - print out the file contents as ascii OR 2 - do the statistical counting...It all seems to depend on if I jump to checkit() before or after my "cout<<x;"
I am pretty sure this is due to flow control or flushing...
I've tried putting cout.flush(); in a number of places...
Anyway, the solution SHOULD be simple... it's just evading me... A suggestion or link to relevant info would be the best!
Thanks in advance!
I should mention that I'm developing under cygwin using notepad++ as my editor.