Renegade's code is not right. It has several things wrong with it, but those should probably be fixed in their own different thread.
blankstare77, your code has several things wrong with it, but most of all I think you are going about this task the wrong way. As I said you should make sure every little change you make compiles. So start with this:
Make sure that compiles. Then maybe add an empty class:
Code:
class Animal
{
};
int main()
{
}
Make sure that compiles. Continue adding one thing at a time and make sure it compiles. If it doesn't, chances are that whatever you just added was wrong. Then after you've got some actual code that compiles, you can ask if it is the right idea and nobody will have to waste time on the incorrect syntax and we can focus on the design and technique.