potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Wed Jun 16, 2010 7:45 pm Post subject: Finally getting better, starting functions today |
|
|
Just wrote this
| Code: | //another test program
/* I'll try to use moar if stements
:D */
#include <iostream>
#include <string>
int main( void )
{
using std::cout;
using std::cin;
int var1;
int var2;
int var3;
int var4;
bool keepopen;
cout << "Hello welcome to test program 3, I have 4 variables, I will repsond based on yoyr input, please enter the first number \n";
cin >> var1;
cout << "The second now, please.";
cin >> var2;
cout << "The third";
cin >> var3;
cout << "And the fourth finally.";
cin >> var4;
if (var1 == 1337) {
cout << "you are awesome :D";
}
if (var2 == 7331) {
cout << "your lame";
}
if (var3 == 9000) {
cout << "wat";
}
if (var4 == 200) {
cout << "again, wat";
}
cin >> keepopen;
cout << "Press 0 to close...";
return 0;
} |
|
|