I want to be able to activate an easter egg in this program, but passing and reading these arguments is making me pull my hair out. Any ideas?
#include <cstdlib>
#include <iostream>
using namespace std;
//(cc) 2008 Nathan Barndt
//Attribution-Share Alike 3.0 United States License
void easteregg()
{
//easteregg code here
cout<<"Congrats. You've found the easter egg";
}
int main(int argc, char *argv[])
{
if (argv[1] == "/e") easteregg();
system("TITLE I Am Lost");
system("COLOR F0");
cout<<"\a";
cout<<endl <<endl <<endl <<endl <<endl <<endl <<endl <<endl <<endl;
cout<<"\t"<<"\t"<<"\t";
cout<<"If you are seeing this message,";
cout<<endl<<"\t"<<"\t"<<"\t";
cout<<"I am lost. Please return me to:";
cout<<endl<<"\t"<<"\t"<<"\t";
cout<<" xxxxxxxxxxxxxxxxx ";
cout<<endl<<endl<<endl<<"\t"<<"\t"<<"\t";
system("PAUSE");
return 0;
}