C++ problem? Geany in UBUNTU 8.10
i am attempting to learn c++ using "sams teach yourself c++ for linux in 21 days", am doing ok, but ran into a problem at day 8, listing 8.5 and beyond. the code is:
class SimpleCat
{
public:
SimpleCat();
~SimpleCat();
private:
int itsage;
}
SimpleCat::SimpleCat()
// error: new types may not be defined in a return type??? Like book!!
{
do not know how to get around this error??
a little help, please? Thanks, len tyree.
p.s. sent the same message to ubuntu forum.
|