I'm wondering that in my program...
Heres 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();
}
How do i go back to the start after i've inputed the year and it outputs the phrase?
All help will be appreciated