fork(1) download
  1. #include <iostream>
  2. #include <sstream>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9. string str= "stroka";
  10. istringstream is (str);
  11. is >> setw(6);
  12. char arr[7];
  13. //is >> str;
  14. is >> arr;
  15.  
  16. cout << "EOF is:" << boolalpha << is.eof() << endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
EOF is:false