I have a structure with 10 plus items. For simplified purposes im just going to use 2.
I am trying to read the items from the structure using a variable and a loop.
is there any way of reading it like this?Code:for (unsigned i=0);i<2;i++) { std::cout << structname->item + i << std::endl; }