• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
2013年9月19日
int c, int ndigit[10]; ++ndigit[c-'0'];
摘要: for example c-'0' is an integer expression with a value between 0and 9 corresponding to the character '0' to '9' stored in c, and thus a valid subscript for the array ndigit 阅读全文
posted @ 2013-09-19 12:57 wjshan0808 阅读(350) 评论(0) 推荐(0)
Write a program that prints its input one word per line.
摘要: #include #define State '\n' void main(){ int Juge=0;/*only one space*/ int c=0; while((c=getchar())!=EOF) { if(c==' '||c=='\t'||c=='\b') { if(Juge==1) { putchar(State); Juge=0; } } else ... 阅读全文
posted @ 2013-09-19 09:38 wjshan0808 阅读(461) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3