hello , i am a newbie in c++ and desperately wanna learn it. icoded this but i m gettin some error
# include<iostream>
using namespace std;
class cat {
public:
unsigned short int age;
public:
void meow ()
{
cout<<"MY AGE IS "<<age<<endl;
}
# include"cat.cpp"
int main()
{
cat tom;
tom.age=12;
tom.meow();
return 0;
}
when i compile with
cc -o 1 1.cpp
i get following erors:
1.cpp:9: error: expected `}' at end of input
1.cpp:9: error: expected unqualified-id at end of input
Bothe class and client program are in the same folder.Please help me.Thanks in advance.
regards
CD-4+