能力值:
( LV4,RANK:50 )
|
-
-
2 楼
貌似C语言的字符串里的\应该写为\\吧
|
能力值:
( LV4,RANK:45 )
|
-
-
3 楼
是转义字符的缘故
昨天就找到原因了 这是修改后的
auto name,TypeName,i,n,type,filehandle;
n = GetMaxLocalType();
filehandle = fopen("C:\\data.dat","wt+");
if (filehandle == 0)
{
Message("error\r",n);
}
else
{
Message("begin write\r",n);
Message("%x\r",filehandle);
for(i=1;i<n+1;i=i+1)
{
name =GetLocalTypeName(i);
if(name =="")
{
}
else
{
TypeName = sprintf("%s\r\n",name);
writestr(filehandle,TypeName);
}
}
Message("end write\r",n);
}
fclose(filehandle);
Message("GetMaxLocalType :%d\r",n);
|
|
|