debug this code
#include<iostream.h>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
class room
{
int length;
int width;
public:
room(int l, int w=0);
width(w),
length(l)
{
}
};
void main()
{
room obj1;
room obj2(12,8);
}
|
Where is the definition for the room constructor?
Where is the definition for the room constructor? |
same question
May be this could help!
1 2 3 4
|
room(int l , int w=0){
length = l ;
width = w;
}
|
Topic archived. No new replies allowed.