Search:

Type: Posts; User: thecneu

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,969

    Reinitialize constructor in class

    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...
  2. Replies
    6
    Views
    1,247

    Im having problems still here is part of my class...

    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;
  3. Replies
    6
    Views
    1,067

    Thats retarded thank god its fixed in more oop...

    Thats retarded thank god its fixed in more oop languages i was so confused.
  4. Replies
    6
    Views
    1,067

    Another class problem

    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...
  5. Replies
    6
    Views
    1,247

    ok so i can do this ...

    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];
  6. Replies
    6
    Views
    1,247

    help with classes

    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...
Results 1 to 6 of 6