SHARE
TWEET

Untitled

a guest Jan 24th, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char s[1001],cuv[1001][1001];
  9.     int v[11] = {};
  10.     int n,k = 0,i,j;
  11.     cin >> n;
  12.     cin.get();
  13.     while(n)
  14.     {
  15.         cin.get(s,1001);
  16.         cin.get();
  17.         k++;
  18.         strcpy(cuv[k],s);
  19.         n--;
  20.     }
  21.     int y = 0;
  22.     int x = 1;
  23.     while(x <= k)
  24.     {
  25.         for(i = 1; i <= k ;i++)
  26.         {
  27.             for(j =5;cuv[i][j] !=' ';j++)
  28.                 cout <<cuv[i][j];
  29.         }
  30.         x++;
  31.     }
  32.     return 0;
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top