Relative Content

Tag Archive for cstruct

Manipulate struct data vertically

I have a function that takes three structs and list of widgets. I want to link all of these widgets with particular field in struct and then process accordingly.

Trying to call a struct member function from another struct member function

I am trying to write a 6502 emulator, and am a bit of a noob with C++ (I normally deal with C), but I was wondering how to call a member function to a struct from another member function of a struct (the struct was passed by reference to the member function of the other struct). I have added what I have below:

How would I make a flexible struct inside another struct?

I’m trying to create an item and box system, where a box can have a flexible amount of items inside it (i. e. not wasting memory by making every box have 50 items, when some will have just a few). I am not quite sure how to do it.