/*
*/
//board.h-calculates and displays the cost of laying sod
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
//declaration section
class ConnectFour
{
public:
ConnectFour();
void board(char);
private:
char place;
};
//implementation section
ConnectFour::ConnectFour()
{
place[6][7];
} //end of default constructor
void board(char p)
{
place = p;
cout<<" 1 2 3 4 5 6 7\n";
for(int a = 0; a<= 5; a++)
{
for(int b =0; b <= 6; b++) cout<<char(218)<<char(196)<<char(191)<<" ";
cout<<'\n';
for(int b =0; b <= 6; b++) cout<<char(179)<<p[a][b]<<char(179)<<" ";
cout<<'\n';
for(int b =0; b <= 6; b++) cout<<char(192)<<char(196)<<char(217)<<" ";
cout<<'\n';
}
} //end of SetDimensions method
I get these errors.
error C2109: subscript requires array or pointer type
error C2065: 'place' : undeclared identifier
error C2109: subscript requires array or pointer type