Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 15th, 2012  |  syntax: C++  |  size: 0.50 KB  |  views: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data