Ravic85 2 Newbie Poster
Rectangle::Rectangle()
{length = width = 1.0;}

Rectangle::Rectangle(double len)
{setLength(len);}
{setWidth(1.0);}

Rectangle::Rectangle(double len, double wid)
{setLength(len);}
{setWidth(wid);}

I get this error: Error 1 error C2447: '{' : missing function header (old-style formal list?) H:\C++\Programming assignment one\Programming assignment one\programming assignment 1 member functions.cpp 19
on line 5 and 9 and don't get the problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.