how to display structure content ?

i need help to display all the content of the ( codedParams & modeParam ) in the next piece of code

struct SAOOffset
{
SAOMode modeIdc; // SAOMode is an enumerator
Int typeIdc;
Int typeAuxInfo;
Int offset[MAX_NUM_SAO_CLASSES];
SAOOffset();
~SAOOffset();
Void reset();
const SAOOffset& operator= (const SAOOffset& src);
};
struct SAOBlkParam
{

SAOBlkParam();
~SAOBlkParam();
Void reset();
const SAOBlkParam& operator= (const SAOBlkParam& src);
SAOOffset& operator[](Int compIdx){ return offsetParam[compIdx];}
private :

SAOOffset offsetParam[MAX_NUM_COMPONENT];

};
class_x::func()
{
SAOBlkParam modeParam;
SAOBlkParam* codedParams ;
codedParams[ctuRsAddr] = modeParam;
}
use cout to display something.
you can use the . operator to a struct object to access its members and print it out using cout.
you can use the -> operator to a pointer to a struct object to access its members and print it out using cout.

http://www.cplusplus.com/doc/tutorial/structures/
Topic archived. No new replies allowed.