Advertisement
Guest User

Untitled

a guest
Aug 15th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctime>
  3. #include <conio.h>
  4. #include "gameboard.h"
  5. using namespace std;
  6.  
  7. gameboard::gameboard(){}
  8. void gameboard::draw(){
  9.     for (int i=0; i < ROW; i++){
  10.         for (int j=0; j < COL; j++){
  11.                 this->board[i][j] =  176;
  12.  
  13.             }
  14.         }
  15. }
  16.  
  17. void gameboard::show(){
  18.     cout << endl;
  19.     for (int i=0; i < ROW; i++){
  20.         for (int j=0; j < COL; j++){
  21.                 cout << this->board[i][j];
  22.             }
  23.         cout << endl;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement