假设我有一个char[100],格式如下:“%d,%d,%d,%.2f,%.2f”。
在ATEASY中获得所有5个变量值的最佳方法是什么?( long,long,long,float, float)。
我想使用Split(sStr,","),但它只适用于String类型。
发布于 2017-09-24 14:10:10
我在以下表格中使用了sscanf(const char *str, const char *format, ...) func:
sscanf(str, "%d, %d, %d, %lf, %lf", lLong1, lLong2, lLong3, dDouble1, dDouble2)要使用此函数,必须将MSVCRT库添加到库中。
该文件载于:
C:\Windows\system32\msvcrt.dll。
https://stackoverflow.com/questions/46157761
复制相似问题