entei123
Nintendo 3DS Legend
Towns Folk
So ,I'm still only starting with C++ so please keep it easy on me. I want to make a simple quiz. This is my program. :
So the program works perfectly. By I want to make it a QUIZ, not a question. So basically ifthe aswer is correct I want it to say what it says , and then to open a new .exe file with next question, which is on my desktop in folder "quiz" . I don't know how to do it ,and help would be really... helpful? xD I looked online and really nothing helps.#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
string answer;
cout << "Here would be question." << endl << "Write yes or no. " << endl;
cin >> answer;
if (answer== "yes" )
{
cout << "The answer is correct." << endl;
}
else if (answer== "no" )
{
cout << "The answer is wrong." << endl;
}
else
{
cout << "Write either yes or no." << endl;
}
system("PAUSE");
return 0;
}