/*********************************************************** Copyright 2003 Rick Miller - Pulp Free Press This source code accompanies the text C++ For Artists and is provided for instructional purposes only. No warranty concerning the quality of the code is expressed or implied. You are free to use this code in your programs so long as this copyright notice is included in its entirety. **********************************************************/ #include "userinterface.h" #include UserInterface::UserInterface():spaces(0){ int rows(0), columns(0); cout<<"Enter Max Rows: "; cin>>rows; cout<>columns; its_rows = rows; its_columns = columns; floor = new bool*[rows]; for(int i = 0; i>c[0]; while((c[0] < '1') || (c[0] > '9')){ cout<<"Please enter a valid menu choice"<>c; } return atoi(c); } void UserInterface::markFloor(int row, int column){ floor[row][column] = true; } void UserInterface::clearFloor(int row, int column){ floor[row][column] = false; } void UserInterface::displayFloor(){ for(int i = 0; i>spaces; return spaces; }