J
john townsley
hi
I am using VC6
1)in C++ can you have a property of a class of type structure
struct MyStruct{
public:
int t ;
};
class Oven {
public:
MyStruct Mstruct;
}
I keep getting errors, I dont know how to declare a property of type struct
2) Can you declare a property to be of type another Class (no inheriting)
and you could refere to these properties like
Obj1.Obj2.prop1 = ....
thanks
I am using VC6
1)in C++ can you have a property of a class of type structure
struct MyStruct{
public:
int t ;
};
class Oven {
public:
MyStruct Mstruct;
}
I keep getting errors, I dont know how to declare a property of type struct
2) Can you declare a property to be of type another Class (no inheriting)
and you could refere to these properties like
Obj1.Obj2.prop1 = ....
thanks