Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <fstream>
  4. #include <iomanip>
  5. #include <cstring>
  6. //==================using section ========================
  7. using std::cin ;
  8. using std::cout ;
  9. using std::endl ;
  10. using std::ifstream ;
  11. using std::ofstream ;
  12. using std::cerr ;
  13. using std::setw ;
  14. using std::noskipws;
  15.  
  16. const int MAX_LINE_LEN = 200;
  17. int main (){
  18.  
  19. //ifstream read_f ;
  20. //ofstream write_f ;
  21. char text[ MAX_LINE_LEN] ;
  22.  
  23. // read_f.open("text1");
  24. // write_f.open("text2");
  25.  
  26. // if(!write_f.is_open() || !read_f.is_open()){
  27. // cerr<<"cannot open one of files";
  28. // exit(EXIT_FAILURE);
  29. //}
  30.  
  31. while(!cin.eof()){
  32.  
  33. for (int i = 0; i < MAX_LINE_LEN ; ++i) {
  34. cin>>text[i];
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement