Connect four type Grid

Hello,
I've recently started learning C++ and am now trying to build a grid for a connect four game (really basic)
I was just wondering if it is possible to put a character in the grid or can it only be number because so far when I tried assigning an Ascii character to a place in the grid, the ascii number showed up in the grid instead of the character.

You can, but you need to store it in a char
eg:
1
2
3
char ( 123 )  // constructs a character with ASCII value 123
'\173'        // character literal for ASCII 123 ( 173 in octal )
'\x7b'        // character literal for ASCII 123 ( 7B in hexadecimal ) 
Topic archived. No new replies allowed.