But I want to know how to make it not case-sensitive.
So Xarver will be the same as XARVER or xArVeR
or Douchebag would be the same as DoUcHeBaG
Here's my code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
system("TITLE Name");
cout << "Enter Your Name(0 to Quit): ";
string name;
getline(cin, name);
cin.ignore();
if(name == "Xarver")
{
cout << "Nice Name You Got There. Heh Heh...\n";
cin.get();
}else if(name == "N00B" || name == "Noob")
{
cout << "Haha, You're a Noob!\n";
cin.get();
}else if(name == "Douchebag" || name == "Douche")
{
cout << "Hey, Douchebag, Get Me A Soda!\n";
cin.get();
}else if(name == "1337")
{
cout << "| r0><!!! 101 r0|=1M|=40\n";
cin.get();
}else if(name == "Mr. Mustache")
{
cout << "Hello, Mr. Mustache!\n";
cin.get();
}else if(name == "Waffles Pancakes and French Toast")
{
cout << "Teh Breakfast is Here!!!\n";
cin.get();
}else {
cout << "Hello " << name << "\n";
cin.get();
}
cout << "Name Identification: Done\n\n";
for(int i = 10; i > 0; --i)
{
cout << i;
cin.get();
if(i == 1)
{
cout << "\nBOOM!\n";
cout << name << " is Dead...";
cin.get();
}
}
return 0;
}
Any easy way to do this?
P.S. A bit of humor in the program
~ Xarver
This post has been edited by Xarver: 12 August 2008 - 03:26 PM

New Topic/Question
Reply



MultiQuote




|