Advertisement
Guest User

Untitled

a guest
May 30th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<iostream>
  2. #include<fstream>
  3. #include<stdio.h>
  4. #include<string>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. string article ;
  10. char nextChar;
  11. while( cin.get(nextChar) ) {
  12. if( cin.eof() ) break ;
  13. article.append(1, nextChar) ;
  14. }
  15.  
  16. cout << article ;
  17.  
  18. system("pause") ;
  19. }
  20.  
  21. I am a student.<ctrl-z>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement