Im quite new to C++ and am trying to learn most of the commands.
So i wanted to make a Programm that has a normal mode and a non normal mode, kindof.
And i wanted to make a question, which the user has to answer to start normal or unnormal mode.
I think this code should show my idea.
The if command never Reacts to a j.
Why is that??
Expand|Select|Wrap|Line Numbers
- char jon;
- printf("Should normal mode be executed? [j/n]");
- cout << endl;
- scanf("%s",jon);
- fflush(stdin);
- if (jon == "j"){}
- else{}