I started learning class's and I made this one program and it had so many errors on it. I managed to get them down to 2. I can't seem to figure out what the problem is though. Can anyone help me out ?
Code:#include <iostream> using namespace std; class Cat { public: int setAge(int age); int setWeight(); int getAge(); int getWeight(); void Meow(); private: int itsAge; int itsWeight; }; //=====Starting of Age=========// int Cat::setAge(int age) { itsAge = age; } int Cat::getAge() { return itsAge; } //=========End of Age===========// //=========Meow()=============// void Cat::Meow() { cout <<"Meow" <<endl; } //======End of Meow============// //======Starting Weight==========// int Cat::setWeight(int weight) { itsWeight = weight; } int Cat::getWeight() { return itsWeight; } //==========End of Weight===========// //===-=-=-=-=-=-=-=-=-Starting Main=-=-=-=-=-=-=-=-=// int main() { int age,weight; cout <<"How old is your cat?" <<endl; cin >>age; cout <<"How much does your cat weigh in pounds?" <<endl; cin >>weight; Cat Frisky; Frisky.setAge(age); Frisky.Meow(); cout <<"The cat is " << Frisky.getAge() <<" years old." <<endl; Frisky.Meow(); Frisky.setWeight(weight); cout <<"The cat is " <<Frisky.getWeight() <<" pounds." <<endl; Frisky.Meow(); return 0; }