
please wait
|
|
|
|
I haven't read all all the posts here, ... |
but I can help you. |
[examples] |
// some compilers will tell you ... I don't know why and I don't care |
... send me a msg, ... |
............................................________ ....................................,.-ββ...................``~., .............................,.-β...................................β-., .........................,/...............................................β:, .....................,?......................................................\, .................../...........................................................,} ................./......................................................,:`^`..} .............../...................................................,:β........./ ..............?.....__.........................................:`.........../ ............./__.(.....β~-,_..............................,:`........../ .........../(_....β~,_........β~,_....................,:`........_/ ..........{.._$;_......β=,_.......β-,_.......,.-~-,},.~β;/....} ...........((.....*~_.......β=-._......β;,,./`..../β............../ ...,,,___.\`~,......β~.,....................`.....}............../ ............(....`=-,,.......`........................(......;_,,-β ............/.`~,......`-...............................\....../\ .............\`~.*-,.....................................|,./.....\,__ ,,_..........}.>-._\...................................|..............`=~-, .....`=~-,_\_......`\,.................................\ ...................`=~-,,.\,...............................\ ................................`:,,...........................`\..............__ .....................................`=-,...................,%`>--==`` ........................................_\..........._,-%.......`\ ...................................,<`.._|_,-&``................`\ |
|
|
cin.sync()
thing is a neat trick, but it is only required to work on buffered streams --and only on the object's buffer --not necessarily the underlying device's buffer. Hence, while you can generally expect it to work with console I/O, it is not always safe to assume it will work elsewhere --for example if the standard input is piped in from a file or a network connection, etc.
|
|
cout << string( 100, '\n' );
|
|
cin.sync();
between lines 22 and 23.