Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char text[LINES][MAX_LETTERS2];
- int i = 0;
- cout << "Please fill text 1 with " << LINES << " lines and max " << MAX_LETTERS2-1 << " letters : " << endl;
- for (i = 0; i < LINES + 1; i++)
- cin.getline(text[i], MAX_LETTERS2);
- strcpy_s(text[0], text[LINES]);
- for (i = LINES; i >= 0; i--)
- {
- strcpy_s(text[i], text[i-1]);
- }
- cout << "your new text is :\n";
- for(i = 1; i <= LINES; i++)
- cout << text[i] << endl;
- break;
- system("pause");
- system("cls");
Advertisement
Add Comment
Please, Sign In to add comment