• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
寒夜月冷
when you believe!!!
      新随笔       管理     
2013年1月6日
生命游戏
摘要: 1 // game of life.cpp 2 //function head 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <windows.h> 6 #include <time.h> 7 #include <ctype.h> 8 //define the size of the two-dimensional array 9 #define SIZE 40 10 void rule(int array[SIZE][SIZE]); 11 //function proto 阅读全文
posted @ 2013-01-06 15:27 寒夜月冷 阅读(230) 评论(0) 推荐(0)
字符串与指针
摘要: #include<stdio.h>#include<stdlib.h> int main(void){ char *p="abcdefg"; printf("%s\n",p); printf("%s\n","ABCD"); printf ("%s\n",p+4); printf ("%s\n","ABCD"+2); printf ("%c %c\n",p[3],*(p+1)); printf ("%c 阅读全文
posted @ 2013-01-06 14:47 寒夜月冷 阅读(126) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3