Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- First Program
- Introduction to C++
- By: Rohin Adalja
- Date: Oct 25th, 2010
- */
- #include <cstdlib>
- #include <iostream>
- #include <windows.h>
- #include <string>
- using namespace std;
- int main(int argc, char *argv[])
- {
- //Declaring Variable
- int loop = 700, x=5;
- string name, gender="";
- cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tPress ANY key to begin ._.";
- system("PAUSE>NULL");
- system("cls");
- cout<<" \n\nrohin";
- Sleep(500);
- cout<<" is";
- Sleep(500);
- cout<<" back";
- Sleep(500);
- cout<<"\n\n\nT";
- Sleep(200);
- cout<<"h";
- Sleep(200);
- cout<<"e";
- Sleep(200);
- cout<<" ";
- Sleep(200);
- cout<<"l";
- Sleep(200);
- cout<<"e";
- Sleep(200);
- cout<<"g";
- Sleep(200);
- cout<<"a";
- Sleep(200);
- cout<<"c";
- Sleep(200);
- cout<<"y";
- Sleep(200);
- cout<<" ";
- Sleep(200);
- cout<<"h";
- Sleep(200);
- cout<<"a";
- Sleep(200);
- cout<<"s";
- Sleep(200);
- cout<<" ";
- Sleep(1000);
- cout<<"r";
- Sleep(100);
- cout<<"e";
- Sleep(100);
- cout<<"t";
- Sleep(100);
- cout<<"u";
- Sleep(100);
- cout<<"r";
- Sleep(100);
- cout<<"n";
- Sleep(100);
- cout<<"e";
- Sleep(100);
- cout<<"d";
- Sleep(600);
- cout<<".";
- Sleep(600);
- cout<<".";
- Sleep(600);
- cout<<".";
- Sleep(2000);
- cout<<"\n\n\n\n\n";
- system ("cls");
- while (loop != 5)
- {
- cout<<"0";
- cout<<"1";
- Sleep(x);
- cout<<"0";
- cout<<"1";
- cout<<"1";
- loop = loop -1;
- x=x+10;
- if (x>=50)
- {
- x = 0;
- }
- }
- system("cls");
- cout<<"What is your name?\nMy Name is: ";
- cin >> name;
- while (gender!="m" && gender!="work" && gender!="f" && gender!="M"&& gender!="F"&& gender!="male"&& gender!="female"&& gender!="Male" && gender!="Female")
- {
- cout<<"What is your gender? Please enter M or F... " <<endl;
- cin>> gender;
- //cin.ignore(100,'\n');
- //getline(cin,name);
- }
- system("cls");
- cout<<"Welcome to the FBI Database, ";
- if (gender == "m"||gender == "M"||gender == "male"||gender == "Male")
- {
- cout<<"Mr. ";
- }
- else if (gender == "f"||gender == "F"||gender == "female"||gender == "Female")
- {
- cout<<"Ms. ";
- }
- // else if (gender == "work")
- //
- // {
- // system("cls");
- // cout<<"Integer 1 divided by Integer 3 and saved in an integer variable";
- // int1/int3 = intAns
- // }
- //
- cout<<name;
- cout<<"\n\n\nSEARCHING\n\nYOU ARE A TERRORIST\n\n\n\n\n\n";
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement