#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> int main() { /*呈现效果 * ################ * a##############! * ay############!! * ...... * ayuexuexi C !!!! */ int x = 0; int y = 0; int n = 0; char arr1[] = "ayuexuexi C !!!!"; char arr2[] = "################"; n = sizeof(arr1) / sizeof(arr1[0])-2; for (x = 0, y = n; x <= y; x++, y--) { arr2[x] = arr1[x]; arr2[y] = arr1[y]; printf("%s\n",arr2); } }
标签:################,语言,ayuexuexi,int,代码,练习,char,arr1,sizeof From: https://www.cnblogs.com/ayue6/p/17741207.html