Hello, i'm trying to take the tutorial of switch/ case and add file IO. I've gotten something to this effect but everytime i try to input the file it says that the variables I have aren't declared when i clearly defined my char variables under int input. if you want the code to see what is wrong please tell me and i'll e-mail cause i don't know how to do the code tags and the link doesn't work
errors:
--------------------Configuration: switch_case - Win32 Debug--------------------
Compiling...
switch_case.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\switch_case\switch_case.cpp(14) : warning C4101: 'space' : unreferenced local variable
C:\Program Files\Microsoft Visual Studio\MyProjects\switch_case\switch_case.cpp(66) : error C2065: 'space' : undeclared identifier
Error executing cl.exe.
switch_case.exe - 1 error(s), 1 warning(s)