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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.