fork download
  1. *****File: input.in*****
  2.  
  3. <FILE_BEG>
  4. FILE = file.set
  5. <FILE_END>
  6.  
  7. *****File: file.set*****
  8.  
  9. <FILE_LIBRARY_BEG>
  10. FILE = file.lib
  11. <FILE_LIBRARY_END>
  12.  
  13. <MYTAG_BEG>
  14. MYTAG<1> = myvalue #from file.lib
  15. MYTAG<2> = myothervalue #from file.lib
  16. <MYTAG_END>
  17.  
  18. <MYOTHERTAG_BEG>
  19. ID = 1 #Must be unique
  20. TYPE = SOMESTRING
  21. MYTAG_BELOW_ID = -1 #must correspond to one of the MYTAGs or 0 or -1
  22. MYTAG_ABOVE_ID = 1 #must correspond to one of the MYTAGs or 0 or -1
  23. <MYOTHERTAG_END>
  24.  
  25. <MYOTHERTAG_BEG>
  26. ID = 2
  27. TYPE = SOMEOTHERSTRING
  28. MYTAG_BELOW_ID = 1 #must correspond to one of the MYTAGs or 0 or -1
  29. MYTAG_ABOVE_ID = 0 #must correspond to one of the MYTAGs or 0 or -1
  30. <MYOTHERTAG_END>
  31.  
  32. *****File: file.lib*****
  33.  
  34. <LIBITEM_BEG>
  35. NAME = myvalue
  36. SOMECOMPLEX = 2.0 0.0
  37. SOMEOTHERCOMPLEX = 1.0 0.0
  38. <LIBITEM_END>
  39.  
  40. <LIBITEM_BEG>
  41. NAME = myothervalue
  42. SOMECOMPLEX = 2.0 0.0
  43. SOMEOTHERCOMPLEX = 1.0 0.0
  44. <LIBITEM_END>
  45.  
  46. *****Goal: Fill the structures below*****
  47.  
  48. struct fileset
  49. {
  50. std::string filelibfilename;
  51. std::map<int, std::string> mytagdata;
  52. std::vector<myothertag> myothertagdata;
  53. };
  54.  
  55. struct myothertag
  56. {
  57. std::string type;
  58. int above, below, id;
  59. };
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty