Since spaces break string inputs, I was wondering how to make a dash appear when you hit space in real-time in cmd. This is what I'm working with so far:
if (GetKeyState(VK_SPACE) & 0x20)
{
//insert a '-'
}
cin >> name;
By the way, I know that this method is only available for Windows, but this whole project is just a small cmd game to get comfortable with C++ so I'm not intending on it being portable.