what if there is a member in the item structure someItem and how to assign a value to it if it is type 1 of the list structure? I have 2 structures
struct list { DWORD Count; char treeItem[9]; }; struct item { list someItem[9]; int num; }; item itemOne; itemOne.num= 1; // Как присвоить simeItem тип list??? itemOne.someItem=; ////////////////////////////////////////// // Работает, все отлично list Neewlist; Neewlist.Count = 5; strcpy(Neewlist.treeItem ,"12345678");
::std::arrayor a function of type::std::memcpy. Or initialize immediately upon creation. - VTTitemOne.someItem[i] = {...};. - HolyBlackCat