Hi peeps.
I just wrote a program because im bored.
Here is the code:
Code:
#include <iostream>
using namespace std;
int main()
{
int DOB;
cout << "Please enter your date of birth...\n" << endl;
cin >> DOB
cin.ignore();
if (DOB < 2006) {
cout << "Erh, you were not born in this year!\n" << endl;
}
else if (DOB == 2006) {
cout << "Oioi, howz your first year?\n" << endl;
}
else {
cout << "WTF are you on aboot? You arn't even born yet!\n" << endl;
}
cin.get();
}
But im just wondering how to compile it, can anyone help me?
I'm using Visual C++ 2005 express edition.