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