okay, I'm not sure this is legal, but here it goes...
I'm trying to have a struct with a class in it...
main.cppfoo.hCode:... #include "foo.h" ... fooStruct foo1; foo1.bar1.hello(); ...bar.hCode:... #include "bar.h" ... struct fooStruct { barClass bar1; } ...it gives me errors in main... I mainly want to knowCode:class barClass { public: void hello(); ...
1) is this legal
2) if so, what am i doing wrong?
thanks in advance...



LinkBack URL
About LinkBacks


