Frooster

File 1

Dec 21st, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include "ship.cpp"
  3. using namespace std;
  4.  
  5. char map[25][10];
  6. ship A,B;
  7.  
  8. void setup(){
  9.    
  10.     for(int i=1;i<=27;i++){
  11.         for(int j=1;j<=12;j++){
  12.             if(i==0 || i==27 || j==0 || j==12)
  13.                 map[i][j]='*';
  14.            
  15.         }
  16.     }
  17. }
  18.  
  19. void mapGen(){
  20.    
  21.     for(int i=0;i<=26;i++){
  22.         for(int j=0;j<=11;j++){
  23.             cout<<map[i][j];
  24.         }
  25.     }
  26. }
  27.  
  28. int main(int argc, char** argv) {
  29.     setup();
  30.     mapGen();
  31.     return 0;
  32. }
Add Comment
Please, Sign In to add comment