I have searched around and I am apparently not searching for the right thing. My question is, can you put an if statement within an if statement?
For example...
1 2 3 4 5 6 7 8 9 10 11 12 13 14
if(userInput == 2)
{
cout << "Random question";
cin >> "Answer to random question";
if(Answer to random question == 1)
{
yadda yadda
}
else()
{
more yadda yadda
}
}
When I compile, it doesn't seem to run the second if statement, the program just exits. So I am assuming that you are not able too, although I might just be missing something.