Hello there, guys!
I am quite some time now into programming, but have been dealing with C source codes for a short time. After creating some very basic programs, I want to do something more "sophisticated", might I use this expression. But let me not beat around the bush and get to the point.
I want to make a Tic-Tac-Toe game (that is, I'm almost done with it), but in order to play, one needs to enter the co-ordinates of the cell one wants to play in. That is, if one wanted to put his move into the upper left corner, one would need to type in 1 1 and press ENTER.
What I want to do is make the program "perceive" the keystrokes of the user, and deal with them accordingly. In the above instance, the only thing one would need to do, should I know how to do it, would be to press the 7 on the numpad.
My question is, do I have this option in C, or will I need to proceed to learning C++? And if I can make it in C, in which way exactly?
Any help will be appreciated. Thank you for reading this post!