JZW00293 13218074.47 3748204.89
JZW00292 13218053.44 3748214.28
JZW00291 13218009.12 3748243.88
JZW00311 13218376.11 3748254.35
将上述txt文本中数据拆分开来,并且保存到变量中
关键使用字符串拆分函数strtok与字符串转双精度小数函数strtod
rewind(Finp.file);
long double xcood, ycood;
char* s = " ";
char* token;
while (fgets(line, MAXLINE, Finp.file) != NULL)
{
if (line[0] == '[')
{
if (line[1] == 'C' && line[2] == 'O' && line[3] == 'O') {
fgets(line, MAXLINE, Finp.file);
fgets(line, MAXLINE, Finp.file);
for (j = 0; j < Nobjects[NODE]; j++)
{
if (fgets(line, MAXLINE, Finp.file) !=