输出的图形中,*号共30个。字符串Very good!的首字母前面有10个空格,上下分别有一空行。

#include<iostream>
using namespace std;
main()
{
    cout<<"******************************"<<endl;
    cout<<" "<<endl;
    cout<<"          Very good!          "<<endl;
    cout<<" "<<endl;
    cout<<"******************************"<<endl;
    return 0;
}

如何改正才能使“PE”消失

cout<<"******************************"<<endl;

cout<<endl;

cout<<"           Very good!"<<endl;

cout<<endl;

cout<<"******************************"<<endl;

PE 是代表什么意思?

PE也就是Presentation Error,输出的格式有问题

你的main方法少了返回类型 int 

int main()

其他的不好判断,没有题目描述,只有你的说法,不好确定别的问题

PE应该是“程序错误(Program Error)”的意思吧?你的main函数没有返回值类型,肯定报错,改成 int main() {},代码如下:

#include<iostream>
using namespace std;
int main()
{
    cout<<"******************************"<<endl;
    cout<<" "<<endl;
    cout<<"          Very good!          "<<endl;
    cout<<" "<<endl;
    cout<<"******************************"<<endl;
    return 0;
}