Hi,
I have the following structure, made up of four structures:-
the structure bundle_info is made up as follows....Code:struct customer_details { struct1; struct2; struct3; struct bundle_info bundle_data; }thisCustomer;
This has four instances...Code:struct bundle_info { char x; char y; }
Now my question is thus...how do I assign values to one of these instances?Code:struct bundle_info bundle1; etc.
I thought it would be...
memcpy(thisCustomer.bundle1.x, buf, 5)
where buf is a character array.
However, this gives the error "bundle1 is not a member of thisCustomer".
Any ideas?
Bill
[code][/code]tagged by Salem



LinkBack URL
About LinkBacks


