There is also a bit of a shortcut that you could use (I think it's called escape sequence), though I've heard some people discourage it, I'm not sure why;
/ = '\/'
~ = '\~`
" = '\"'
1 2 3 4 5 6 7 8
char key;
//process whatever input you use...
if(key == '\~')
{
//the key pressed was ~
}
Nope, you're right, no \/ escape key, I'd always assumed there was and had been typing it like that all this time. I'm self taught, stop laughing... :p
Oh well, I wasn't sure if I should have mentioned escape keys at all, thanks for the explanation why not to use them.