1>c:\users\patrick\documents\visual studio 2008\projects\more constructor practice\more constructor practice\main.cpp(4) : error C2533: 'pokemon::{ctor}' : constructors not allowed a return type
okemon(int iAge, int iWeight, char iGender) //constructor of pokemon,
/
/
pokemon::pokemon()
{
//this code is called when you do 'pokemon *pPokemon = new pokemon'
}
#include <iostream>
using namespace std;
class pokemon
{
public:
pokemon(int , int , char); //constructor and destructor
~pokemon();
int GetAge() { return cAge; } //accessor functions
void SetAge(int age) { cAge = age; }
int GetWeight() { return cWeight; }
void SetWeight(int weight) { cWeight = weight; }
int GetGender() { return cGender; }
void SetGender(char gender) { cGender = gender; }
void Retreat() { cout << "Retreated\n"; } //random function
private:
int cAge;
int cWeight;
char cGender;
};

talk about a mega-nerd.
thanks for the book ... After I read this, I'll read c++ primer plus.