92504,12.6,S,100
92504,12.6,S,100
92504,12.6,B,100
92504,12.6,S,500
92504,12.6,S,500
92504,12.6,S,200
92504,12.6,S,1800
92504,12.6,S,800
92504,12.6,S,800
92504,12.6,S,200
92504,12.6,S,500
92504,12.6,S,1000
92504,12.6,S,400
这种形式
http://blog.csdn.net/lovingalice/article/details/51069031
http://www.cnblogs.com/c-delight/archive/2005/12/12/295564.html
你也许用的上
严格这种形式的可以使用stringstream,从文件流中读入到string流中,再从string流中读取数据。
假设已经读一行到stringstream ssm中
string str;
str>>ssm;
int A,B,D;
char C;
char a;
ssm>>A>>a>>B>>a>>C>>a>>D;
对于格式很好的数据可以这么处理