When I compile my script using Dev-C++, they say that on line 38 ( if(strcmp(option, "1") == 0) ), 'option' is undeclared, but i am sure it is already declared.
Code:
Code:
#include <iostream>
#include <string>
int main(void)
{
char insane[100];
std::string strinsane = "";
cout<<"\t### m4 installer v0.1 ###";
cout<<"\n";
cout<<"\t### (c) Microsoft 2002 ###";
cout<<"\n";
cout<<"\t### Testers: DO NOT GIVE THIS TO YOUR FRIENDS OR ANYBODY ELSE ###";
cout<<"\n";
cout<<"\t### Press enter to begin. ###";
cin.getline(insane, sizeof insane, '\n');
if(strcmp(insane, "insanityclownZ") == 0)
{
cout<<"WTF ! How did you know?\n";
cout<<"If you read the source code you die! insanityclownz";
}
else
{
cout<<"\t## 1. Download Longhorn M4 from MS ##\n";
cout<<"\t## 2. Exit ##\n";
cout<<"Select an option: ";
int option;
cin>>option;
}
if(strcmp(option, "1") == 0)
{
std::string strTurkey = "Happy Turkey Day! insanityclownZ\n";
cout<<"## Downloading m4 ! ##";
cout<<strTurkey;
}
else if(strcmp(option, "2") == 0)
{
cout<<"Billy says bye !\n";
}
else
{
cout<<"Invalid option dumbass! ";
}
cin.get();
cin.get();
return 0;
}