1.

Solve : Help with C++?

Answer»

Im trying to MAKE a tetris game and i get this error "type int unexpected". It happens at the function that randomizes some numbers and returns a tetris piece, in this case, a pointer to a 2-dimensional int array.


CLASS Board
{
public:
    // some FUNCTIONS
    *int[5][5] GetNextPiece();
    // some other functions
private:
    // private data MEMBERS
};

whats wrong and how can I fix that?I tried to fix it here is the code,

Code: [Select]#include <iostream>

using namespace std;

int main();
class Board
{
public:

    int name[5][5], GetNextPiece();

private:
};



Discussion

No Comment Found