How Can I create struct field in a loop?
130 ビュー (過去 30 日間)
Hello to all,
I have a problem with the struct. I have two nested for loops. With the innermost one I create a struct called 'strutt'. Once I get out of the internal one I have to allocate the whole structure to another structure in the different fields. The problem is that the field is always overwritten. here is the code. Can you help me?
prasanth s 2020 年 1 月 18 日
'struct' command creates new structure. you have to create new structure at the starting of loop. add new fields to the structure inside the loop.