数组 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Zzzp
V2EX    C

数组

  •  
  •   Zzzp 2018-08-07 21:26:06 +08:00 3049 次点击
    这是一个创建于 2631 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天学习了数组,然后自己想通过数组来实现的打印 hello world,大概思路是这样的 #include <stdio.h> int main() { char ch[10]={h,e,l,l,o,w,o,r,l,d}; printf("%s%s%s%s%s %s%s%s%s%s\n",ch[0],ch[1],ch[2],ch[3],ch[4],ch[5],ch[6],ch[7],ch[8],ch[9]); return 0; }

    然后显示里面的每个字母需要声明。求大神指导。