error C2533: 'TimeOff::{ctor}' : constructors not allowed a return type

HI,
I am kind of new to C++ and I am stuck in an error message.

error C2533: 'TimeOff::{ctor}' : constructors not allowed a return type

#include "TimeOff.h"
#include "NumDays.h"
//#include <iostream>
//using namespace std;




/*string name;

NumDays maxSickDays,
sickTaken,
maxVacation,
vacTaken;*/


//Constructor
TimeOff::TimeOff( string n, double mS, double mV ):name(n), maxSickDays(mS), sickTaken(0), maxVacation(mV), vacTaken(0)
{}
{}

Anyone who knows what i should be looking for please help. If you need addition information also let me know.
You're supposed to have only [code] before the code and only [/code] after the code, not [code][/code] before and after. Go ahead and edit your post to fix it.

As for the problem, you haven't shown us the relevant code. Show the code that the error refers to and tell us the line number.
Topic archived. No new replies allowed.