Tuesday, 15 May 2012

c++ - Looking for the best data structure for the job -


I need a data structure to read the following example data:

  [ TAG1] PROPERTYA = TRUE PROPERTYB = TRUE PROPERTYC = TRUE [TAG2] PROPERTYA = TRUE PROPERTYB = FALSE PROPERTYC = FALSE ETC ...   

Any thoughts?

There is a solution with all the properties of an array and values ​​with the other array of the same size but how do I know which tag is the property under?

How about

  std :: map & lt; String, std :: map & lt; String, bool & gt; & Gt; Create a new map of the string: every time you press [TAG] the row, and all the maps marked by TAG    Archive.

No comments:

Post a Comment