why don't you think I have already try it out ??????????? ----->>>>>
I sad try it your self first and than post whole code please
here is your code you were talking about with error
Code:
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string select;
cin >> select;
switch ( select )
{
case "start":
{
cout << "start" << endl;
break;
}
case "load":
{
cout << "load" << endl;
break;
}
default:
{cout << "wrong try again" << endl;}
}
system ("pause");
return 0;
}
Code:
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Programing\my own programs\showing some stuff just to show 1.cpp" -o "C:\Programing\my own programs\showing some stuff just to show 1.exe" -pg -g3 -I"C:\Programing\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Programing\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Programing\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Programing\Dev-Cpp\include\c++\3.4.2" -I"C:\Programing\Dev-Cpp\include" -L"C:\Programing\Dev-Cpp\lib" -lgmon -pg -g3
C:\Programing\my own programs\showing some stuff just to show 1.cpp: In function `int main()':
C:\Programing\my own programs\showing some stuff just to show 1.cpp:11: error: switch quantity not an integer
Execution terminated
I have already show this in upper post
but it seems I must again
now before you post please try out your self