I have code in the constructor in my class. Yet when I want the game Im doing restart I would like to reset the class.
in C# it would be CMyClass class;
class = new CMyClass();
What is the way...
Type: Posts; User: thecneu
I have code in the constructor in my class. Yet when I want the game Im doing restart I would like to reset the class.
in C# it would be CMyClass class;
class = new CMyClass();
What is the way...
Im having problems still here is part of my class declaration
class CMinesweeper {
public:
const int MAXBOMBS;
const int ROW;
const int COL;
const char BOMB;
const char EMPTY;
Thats retarded thank god its fixed in more oop languages i was so confused.
hi im writing code and i get another error saying need class/union/struct left of .(my class method).
Yet i do Class ClassName();
ClassName.myMethod();
Yet if i use parameters instead it...
ok so i can do this
CMinesweeper::CMinesweeper() : ROW(9), COL(9) {}
ok can i do this
public:
struct Cell { blah blah};
Cell board[ROW][COL];
Im trying to put constants in my class and i get wierd compile messages saying only "=0" allowed. Here is how im doing it.
class Minesweeper {
public:
const int ROW = 9;
....
Am i suppose to...