【发布时间】:2016-11-02 04:09:26
【问题描述】:
如何解析以下 C++ 字符串 到以下表格:
string1= 2012-01 //year-month;
string2= House; //second sub-field
string3= 20; // integer
以下来自stdin
2012-01-23, House, 20
2013-05-30, Word, 20 //might have optional space
2011-03-24, Hello, 25
...
...
so on
【问题讨论】: