class theBall{ public: int x; int y; int xdirection; int ydirection; int speed; float xvelocity; float yvelocity;};class thePoints{ public: int x[100]; int y[100]; int hit[50][50]; int rows; int columns;};class thePlayer{ public: char* name; int points;};int main( int argc, char* args[] ) { //the classes thePong pong; theBall ball[3]; thePoints points; thePlayer player; //set the integers for the game int game = 1; pong.x[0] = 240; pong.y = 620; pong.length = 5; ball[0].x = 123; ball[0].y = 100; ball[0].xdirection = 1; ball[0].ydirection = 1; ball[0].speed=3; ball[0].xvelocity = 1; ball[0].yvelocity= 1;and then i get error:larsemil@diilbuntu:~/game$ g++ -o test game.cpp -lSDLgame.cpp: In function "int main(int, char**)":game.cpp:114: fel: begäran av medlem "x" i "ball", som är av icke-klasstyp "theBall [3]"game.cpp:115: fel: begäran av medlem "y" i "ball", som är av icke-klasstyp "theBall [3]"game.cpp:116: fel: begäran av medlem "xdirection" i "ball", som är av icke-klasstyp "theBall [3]"game.cpp:117: fel: begäran av medlem "ydirection" i "ball", som är av icke-klasstyp "theBall [3]"game.cpp:118: fel: begäran av medlem "speed" i "ball", som är av icke-klasstyp "theBall [3]"game.cpp:119: fel: begäran av medlem "xvelocity" i "ball", som är av icke-klasstyp "theBall [3]"game.cpp:120: fel: begäran av medlem "yvelocity" i "ball", som är av icke-klasstyp "theBall [3]"and so on for each time i use ball[0]