Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setlocale(LC_ALL, "Russian");
- string f = "купукпукпукп укпу кп укп укп укпукпукп \0";
- char **mas = new char*[3];
- mas[0] = &f[4];
- mas[1] = &f[8];
- mas[2] = &f[12];
- for (size_t i = 0; i < 3; i++)
- {
- int j = 0;
- while ((&mas[i][j] != &mas[i+1][0])||mas[i][j]!='\0')
- {
- cout << mas[i][j];
- j++;
- }
- }
- cout << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement