my very first game!
here is the source
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
//unknown
int MyGuess(0);
int Bob(1234);
//another integer
srand(time(NULL));
//guess = rand()%10+1;
cout << "enter a pin number for the info\n";
cin >> MyGuess;
//we tell the user the results
if(MyGuess == Bob){//check if myguess is guess
cout << "my password is blank\n";
} else {//otherwise
cout << "wrong ,try again!!!\n";
cout << "you guessed " << MyGuess << " and you fail! here is what you should have got ";
cout << Bob << "\n";
}
system("PAUSE");
return EXIT_SUCCESS;
}
i just posted this for the crack!:happysad:
here is the source
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
//unknown
int MyGuess(0);
int Bob(1234);
//another integer
srand(time(NULL));
//guess = rand()%10+1;
cout << "enter a pin number for the info\n";
cin >> MyGuess;
//we tell the user the results
if(MyGuess == Bob){//check if myguess is guess
cout << "my password is blank\n";
} else {//otherwise
cout << "wrong ,try again!!!\n";
cout << "you guessed " << MyGuess << " and you fail! here is what you should have got ";
cout << Bob << "\n";
}
system("PAUSE");
return EXIT_SUCCESS;
}
i just posted this for the crack!:happysad: