//打印hello word!2022.1.21
#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<stdlib.h>
int main(){
char arr1[] = "hello word!";
char arr2[] = "###########";
int left = 0;
int right = strlen(arr2)-1;
while(left<=right){
printf("%s\n",arr2);
arr2[left] = arr1[left];
arr2[right] = arr1[right];
left++;
right--;
Sleep(1000);
system("cls");
}
printf("%s\n",arr2);
return 0;
}
打印hello word的c-code
于 2022-01-21 21:14:45 首次发布