我有一个文本文件:
cout << isvalid("1234567"); //good
cout << isvalid("1s34567"); //bad
//etc
和班级:
20160906000001 // header with dateTime = 20160906 and code = 000001
name0100000152255 // body with name = name01 and reference = 00000152255
name0200000152256 // body with name = name02 and reference = 00000152256
name0300000152257 // body with name = name03 and reference = 00000152257
我想从文本文件中创建我的类文件的实例:
最好的方法是什么?