大佬们求解?这样为什么错啊?还有想请问一下错误提示怎么调试啊
查看原帖
大佬们求解?这样为什么错啊?还有想请问一下错误提示怎么调试啊
614966
qinyiming楼主2023/3/19 17:37
#include<iostream>
using namespace std;

int main(){
    /*int a,b,c;
    cin>>a>>b;
    c=a+b;
    cout<<c;
    */

    char c;
    cin >> c;

    int i,j;
    //i行,j空+星
    for(i=1;i<=3;i++){
        for(j=3-i;j>=0;j--){
            cout<<" ";
        }
        for(j=1;j<=2*i-1;j++){
            cout << c;
        }
        cout<<endl;
    }

return 0;
}
2023/3/19 17:37
加载中...