VC++编程
voidCReadLineView::outputdataf(CArray<Outdata,Outdata&>*out){FILE*fp;CStringname;CStr...
void CReadLineView::outputdataf(CArray<Outdata,Outdata&>*out)
{
FILE *fp;
CString name;
CString str1,str2,str3,str0;
Outdata data;
int n;
n=data.num;
str3.Format("%d",n);
name="E:\\temp\\draw "str3".txt";
int num=out->GetSize();
fp=fopen(name,"w+");
以上程序编译后出现以下两个错误
error C2146: syntax error : missing ';' before identifier 'str3'
error C2143: syntax error : missing ';' before 'string'
请问是怎么回事呢 ?? 展开
{
FILE *fp;
CString name;
CString str1,str2,str3,str0;
Outdata data;
int n;
n=data.num;
str3.Format("%d",n);
name="E:\\temp\\draw "str3".txt";
int num=out->GetSize();
fp=fopen(name,"w+");
以上程序编译后出现以下两个错误
error C2146: syntax error : missing ';' before identifier 'str3'
error C2143: syntax error : missing ';' before 'string'
请问是怎么回事呢 ?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询