toupper returns integer rather than char
问题 for the following function void display() { for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { if (board[i][j] < 84 && (i+j)%2 == 0) SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), 0x70); else if (board[i][j] < 84 && (i+j)%2 == 1) SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), 0xc0); else if (board[i][j] > 97 && (i+j)%2 == 0) SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), 0x7c); else if (board[i][j] > 97 && (i+j)%2 == 1) SetConsoleTextAttribute(