GastonFontenla

FUNCA

Oct 4th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int cantCasos;
  8.     cin >> cantCasos;
  9.  
  10.     for(int k=0; k<cantCasos; k++)
  11.     {
  12.         char c;
  13.         cin >> c;
  14.         string s;
  15.         getline(cin, s);
  16.         getline(cin, s);
  17.  
  18.         while(s.size())
  19.         {
  20.             cout << "Leido: " << s << endl;
  21.             getline(cin, s);
  22.         }
  23.     }
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment