I\'m trying to access a member structs variables, but I can\'t seem to get the syntax right. The two compile errors pr. access are: error C2274: \'function-style cast\' : i
You create a nested structure, but you never create any instances of it within the class. You need to say something like:
class Foo{ public: struct Bar{ int otherdata; }; Bar bar; int somedata; };
You can then say:
foo.bar.otherdata = 5;