#include<iostream> #include"string.h" using namespace std; int main(){ char c[]={'*','*','*','*','*'}; char c1[6]={' '}; char c2[7]={' '}; char c3[8]={' '}; char c4[9]={' '}; cout<<c<<"\n"; strcat(c1,c); cout<<c1<<"\n"; strcat(c2,c1); cout<<c2<<"\n"; strcat(c3,c2); cout<<c3<<"\n"; strcat(c4,c3); cout<<c4<<"\n"; return 0; }
by: 发表于:2017-09-01 09:54:34 顶(0) | 踩(0) 回复
??
回复评论