出现fatal error C1004: unexpected end of file found错误

来源:百度知道 编辑:UC知道 时间:2024/06/08 16:51:37
#include<iostream>
#include<String>

using namespace std;

class show
{
int main()
{
for(int i=1;i<=8;i++)
{
for(int j=1;j<=i;j++)
{
cout<<setfill('*')<<setw(i+7)<<"A";
}
cout<<endl;
}
return 0;
}
}出现fatal error C1004: unexpected end of file found错误

//帮你改了下,OK了

#include<iostream>
#include<String>
#include <iomanip>

using namespace std;

class show
{
};
int main()
{
for(int i=1;i<=8;i++)
{
for(int j=1;j<=i;j++)
{
cout<<setfill('*')<<setw(i+7)<<"A";
}
cout<<endl;
}
return 0;
}