摘要:
#include <stdio.h> int main() { //char s[] = {'h','e','l','l','o','\0'}; char s[] = {"hello"}; //这种方式可以省略结尾的\0 printf("%s\n",s);//利用%s参数,可以省略我们自己写循环,一 阅读全文
摘要:
#include <stdio.h> int main() { char a[3][5] = {{'m','a','n','g','o'},{'a','p','p','l','e'},{'g','r','a','p','e'}}; for(int i = 0; i < 3; i++) { for(i 阅读全文