/*************************************************************************** * Copyright (C) 2007 by Zach Perrault * * t3hw0n@t3hw0n-desktop * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <iostream>#include <cstdlib>using namespace std;int main(int argc, char *argv[]){ int number1; //make the variables int number2; int answer; cout << "Hello, this is t3h_w0ns first cpp program.\nIt will add two numbers\n"; //start the program and tell what it does. cout << "Please enter the first number:"; //ask for number_w0n. cin >> number1; //make number_w0n == what they type. cout << "Please enter the second number:"; //ask for number_tw0 cin >> number2; //make number_tw0 == what they type if (number1 == 2 && number2 == 2) { cout << "The answer to "<< number1 <<" + "<< number2 <<" is 5.\n"; //2 + 2 really is 5.... trust me.... } else if (number1 == 13 && number2 == 37) //easter egg!!!!!!! { cout << "Congrats! you have found the easter egg, mr 1337 XD.\nThis was put in here for fun, \nand if you really must know what 13 + 37 is, its 50.\nNow go on with your sorry excuse for a life.\n"; } else { answer = number1 + number2; cout << "The answer to "<< number1 <<" + "<< number2 <<" is "<< answer <<".\n"; //if people sukk and use this for what i say it is ^_^ losers... } return EXIT_SUCCESS; //we are done now.}