Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <cstdlib>
- using namespace std;
- main()
- {
- int i;
- int n;
- cin >> n;
- cin.ignore();
- string text[n];
- cout << n;
- for(i = 0; i < n; i++)
- {
- cout << i;
- getline(std::cin, text[i]);
- }
- for(i = 0; i < n; i++)
- {
- cout << text[i] << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement