keymasterviriya1150

Untitled

Sep 8th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.90 KB | None | 0 0
  1. #include<iostream>
  2. #include<vector>
  3. using namespace std;
  4. void vectorrr()
  5. {
  6.     vector<vector<int> > vec;
  7.  
  8.     for(int i = 0; i < 5; i++)
  9.     {
  10.          vector<int> row;
  11.          vec.push_back(row);
  12.     }
  13.  
  14.     vec[0].push_back(5);
  15.     vec[0].push_back(99);
  16.     vec[0].push_back(88);
  17.     vec[0].push_back(77);
  18.     vec[0].push_back(66);
  19.     vec[1].push_back(999);
  20.     vec[1].push_back(991);
  21.     vec[2].push_back(4);
  22.     vec[3].push_back(555);
  23.     for(int i = 0; i < 3; i++)
  24.         for(int j = 0; j < vec[i].size(); j++)
  25.             cout << vec[i][j] << endl;
  26. }
  27. void vectorrr2()
  28. {
  29.     vector<int> V[5];
  30.     for(int i = 0; i < 3; i++)
  31.     {
  32.         for(int j = 0; j < 2; j++)
  33.             V[i].push_back(j);
  34.     }
  35.     for(int i = 0; i < 3; i++)
  36.         for(int j = 0; j < V[i].size(); j++)
  37.             cout << V[i][j] << endl;
  38.    
  39. }
  40. void b()
  41. {
  42.     bool b=0;
  43.     if(!b)
  44.         cout <<"fuck";
  45.     else cout <<"dont fuck";
  46. }
  47. int main()
  48. {
  49.     b();
  50. }
Advertisement
Add Comment
Please, Sign In to add comment