In the following C++ program:
int opt;
in(opt);
switch(opt)
case(opt == 1):
//and so on…
where in(opt);
is the procedure used to get the value of the integer opt.
I get the error here: case(opt == 1):
Basically the point is I want to make a way for the user to decide what feature of the program is going to be used. I also tried with a char but had no luck with it as well. I just can't figure out what's going on.