Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1.  
  2.     setlocale(LC_ALL, "Russian");
  3.     string f = "купукпукпукп укпу кп укп укп укпукпукп \0";
  4.     char **mas = new char*[3];
  5.     mas[0] = &f[4];
  6.     mas[1] = &f[8];
  7.     mas[2] = &f[12];
  8.    
  9.     for (size_t i = 0; i < 3; i++)
  10.     {
  11.         int j = 0;
  12.         while ((&mas[i][j] != &mas[i+1][0])||mas[i][j]!='\0')
  13.         {
  14.             cout << mas[i][j];
  15.             j++;
  16.         }
  17.     }
  18.     cout << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement