design function: underlying structure to store list of results for print to file
Posted
by
forest.peterson
on Stack Overflow
See other posts from Stack Overflow
or by forest.peterson
Published on 2012-07-06T20:19:00Z
Indexed on
2012/07/06
21:16 UTC
Read the original article
Hit count: 189
is this a good approach to print a list of items to csv file with a sublist attached to each item.
The gist of the function is when an item is found that does not exactly macth then a list of close matches is generated - this works now writing out one list at a time to a command window. For export to a csv file I think all the lists must be generated, stored and then written at once.
Right now I use a struct to store the attributes printed, each struct is an item on the list - these structs are then added to a sorted stack and when printed they pop off into write out. Is a stack of stacks of structs a good design?
© Stack Overflow or respective owner