Oh. Now that one makes sense. Thanks. Um. I guess I will show you what i thought was suppose to be for the password one, i know it is wrong but i did not know what else to do....
Code:
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
string var;
cout<<"Please enter the password."<<endl;
cin>>var;
while (var=="sad")
{
cout<<"You guessed that the password was "<<var<<" which was correct. Good job."<<endl;
var++;
}
system("PAUSE");
return EXIT_SUCCESS;
}