Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.     int w, h;
  2.     inf >> w >> h;
  3.    
  4.     string take;
  5.     getline(inf, take); //move down a line
  6.    
  7.     vector<string> pict(2*h+1);
  8.  
  9.     for (int i = 0; i < 2*h+1; i++)
  10.     {
  11.         getline(inf, pict[i]);
  12.     }
  13.    
  14.     cout << "taken" << endl; //finished taking in maze
  15.    
  16.     for (int i = 0; i < 2*h+1; i++) cout << pict[i] << endl; //prints out maze
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement