标签:image src == || 个数 argc alt bit 编程
#include <bits/stdc++.h> using namespace std; int main(int argc, char* argv[]) { int n, j; char ch; cin >> n >> ch; for(int row = 0, col = n/2 - 1; row <= col; row++){ if(row == 0 || row == col){ j = n; while(j-- > 0){ cout << ch; } cout << endl; }else{ cout << ch; j = n; while(j-- > 2){ cout << " "; } cout << ch << endl; } } return 0; }
标签:image src == || 个数 argc alt bit 编程
原文地址:https://www.cnblogs.com/YC-L/p/12332522.html