怎么样将类似"100,100"的字符串转化成两个整数100
怎么样将类似"100,100"的字符串转化成两个整数100
可以这样:
AnsiString asTemp = "100,100";
AnsiString FTemp = asTemp.SubString(0,asTemp.Pos(",")-1);
AnsiString STemp = asTemp.SubString(asTemp.Pos(",")+1,asTemp.length());
结果是:FTemp : 100 STemp :100