Guest User

Untitled

a guest
Oct 22nd, 2019
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4. #include <cstdlib>
  5.  
  6. using namespace std;
  7.  
  8. main()
  9. {
  10. int i;
  11.  
  12. int n;
  13. cin >> n;
  14. cin.ignore();
  15.  
  16. string text[n];
  17.  
  18. cout << n;
  19.  
  20. for(i = 0; i < n; i++)
  21. {
  22. cout << i;
  23. getline(std::cin, text[i]);
  24. }
  25.  
  26. for(i = 0; i < n; i++)
  27. {
  28. cout << text[i] << endl;
  29. }
  30.  
  31. }
RAW Paste Data