标签:put with end std tput input script space draw
http://acm.hdu.edu.cn/showproblem.php?pid=2052
#include <bits/stdc++.h> using namespace std; int a[100][100]; int len; int main() { int n,m; while(cin>>m>>n) { for(int i=1; i<=n+2; i++) { if(i==1||i==n+2) for(int j=1; j<=m+2; j++) { if(j==1) cout<<"+"; else if(j==m+2) cout<<"+"<<endl; else cout<<"-"; } else for(int j=1; j<=m+2; j++) { if(j==1) cout<<"|"; else if(j==m+2) cout<<"|"<<endl; else cout<<" "; } } cout<<endl; } return 0; }
标签:put with end std tput input script space draw
原文地址:https://www.cnblogs.com/zlrrrr/p/9221882.html