Confusing title, confusing question.
First off, I'm making arrays of type Room (class). I'm aware I have to have default constructor arguments for this to work... or whatever you call it. My problem is, I can't seem to give a default value to one of the parameters in my constructor function; and that parameter type happens to be another class.
The constructor header:
Okay Dokay - since I am creating an array of these Room types, I need default constructor arguments.. and I have them there.. all except for the last parameter (Monster dmob). How can I give this a default value?Code:Room::Room(int dr = 0, int dc = 0, // row, column number (d for default arguments) bool dN = true, bool dE = true, // exits (N, E) bool dS = true, bool dW = true, // exits (S, W) char* dname = '\0', char* ddescr = '\0', // name, description Monster dmob)
If this doesn't make sense please say so, and i'll post the rest of the code.