I'm trying to read from the console because I writing a chess game for the console and I need to figuare out what piece is beign moved, so I need to read from it, but I keep on getting errors when I try this code...
Thanks in advance...Code:char name[1]; char Kn[2]; DWORD Read; int x; // original X co-ordinate of the piece being moved. int y; // original Y co-ordinate of the piece being moved. int a; int b; if(turn == 1) { turn++; // Sorting out turning system } else if(turn == 2) { turn--; } make_move[1] = (int)x; // Finding out what piece has been moved make_move[2] = y; a = (7*(x - 65)) + 10; Position.X = a; b = 5*y; Position.Y = b; ReadConsoleOutputCharacter(hOut, &name, 1, Position, Read);![]()



LinkBack URL
About LinkBacks




But, this is the company that chose to deprecate a portion of the standard C library in their latest compiler without the C standard committee's blessing.