This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/iostream/istream/sync.cpp

15 lines
244 B
C++

#include <iostream.h>
#include <fstream.h>
void main( void ) {
char ch;
cin >> ch;
if( cin.sync() == EOF ) {
cout << "The get area is not clear yet!" << endl;
} else {
cout << "Sync succeed!" << endl;
}
}