Advertisement
Felanpro

fun with while()

May 10th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     string name;
  10.     string lastname;
  11.  
  12.     while(cin >> name >> lastname)
  13.     {
  14.         cout << "Hello world!" << endl;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement