First Prototype gone bad...
Hey guys, so ive jsut started teaching my self C++ and so far ive been doing ok. Today i worked on coding my own original prototype based of the example used. Code Blocker kicked back a lot of errors and i cant figure out why or what i am doing wrong. please help if you guys can.
thanks guys. glad to be a part of the community. and hopefully this code is nice and clean enough for you guys. let me know if i should post differently next time.
Josh
Code:
#include <iostream>
using namespace std;
int age ( int x, int y );
int main()
{
int x;
int y;
cout<<"Please input the month you were born (number form): ";
cin>> int x;
cin.ignore();
cout<<"Please input the year of your birth: ";
cin>> int y;
cin.ignore();
cout<<"your age is:"<< age ( x, 2011 - y ) <<"\n";
cin.get();
}
int age ( int x, int y );
{
return x, 2011 - y
}