Quote:
Originally Posted by Kambic
#include <iostream>
#include <string>
using namespace std;
int main()
{
string answer;
while (answer != "Y")
{
cout << "Should Kambic be the next EQEmu Developer?" << endl;
cout << "Please type Y for 'Yes' or N for 'No':" << endl;
cin >> answer;
if (answer != "Y")
{
cout << "die irl plz" << endl;
}
}
cout << "you are teh WIN !!!" << endl;
return 0;
}
|
N -- Oh btw, it will always return the "you are teh WIN !!!" line because you didn't include "return 0;" in your if statement. So i r teh WIN !!!