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






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 210 211 212 213 214 215 216 217 218 ··· 276 下一页

2019年6月3日

吴裕雄--天生自然C语言开发:数组
摘要: double balance[5] = {1000.0, 2.0, 3.4, 7.0, 50.0}; double salary = balance[9]; #include int main () { int n[ 10 ]; /* n 是一个包含 10 个整数的数组 */ int i,j; /* 初始化数组元素 */ for ( i... 阅读全文
posted @ 2019-06-03 16:34 吴裕雄 阅读(250) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:作用域规则
摘要: #include int main () { /* 局部变量声明 */ int a, b; int c; /* 实际初始化 */ a = 10; b = 20; c = a + b; printf ("value of a = %d, b = %d and c = %d\n", a, b, c); return 0; } #include... 阅读全文
posted @ 2019-06-03 16:28 吴裕雄 阅读(168) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:函数
摘要: return_type function_name( parameter list ) { body of the function } /* 函数返回两个数中较大的那个数 */ int max(int num1, int num2) { /* 局部变量声明 */ int result; if (num1 > num2) result = num1;... 阅读全文
posted @ 2019-06-03 16:26 吴裕雄 阅读(252) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:循环
摘要: while(condition) { statement(s); } #include int main () { /* 局部变量定义 */ int a = 10; /* while 循环执行 */ while( a int main () { /* for 循环执行 */ for( int a = 10; a int main ... 阅读全文
posted @ 2019-06-03 16:24 吴裕雄 阅读(143) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:判断
摘要: if(boolean_expression) { /* 如果布尔表达式为真将执行的语句 */ } #include int main () { /* 局部变量定义 */ int a = 10; /* 使用 if 语句检查布尔条件 */ if( a int main () { /* 局部变量定义 */ int a = 100; ... 阅读全文
posted @ 2019-06-03 16:14 吴裕雄 阅读(127) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:运算符
摘要: #include int main() { int a = 21; int b = 10; int c ; c = a + b; printf("Line 1 - c 的值是 %d\n", c ); c = a - b; printf("Line 2 - c 的值是 %d\n", c ); c = a * b; printf("Li... 阅读全文
posted @ 2019-06-03 16:09 吴裕雄 阅读(173) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:存储类
摘要: { int mount; auto int month; } { register int miles; } #include /* 函数声明 */ void func1(void); static int count=10; /* 全局变量 - static 是默认的 */ int main() { while (count--) {... 阅读全文
posted @ 2019-06-03 15:12 吴裕雄 阅读(165) 评论(0) 推荐(0)
 
吴裕雄--天生自然C语言开发:数据类型
摘要: #include #include int main() { printf("int 存储大小 : %lu \n", sizeof(int)); return 0; } #include #include int main() { printf("float 存储最大字节数 : %d \n", sizeof(float)); printf("f... 阅读全文
posted @ 2019-06-03 15:06 吴裕雄 阅读(264) 评论(0) 推荐(0)
 
吴裕雄--天生自然 诗经:锄禾
摘要: 锄禾 【作者】李绅 【朝代】唐 锄禾日当午,汗滴禾下土。 谁知盘中餐,粒粒皆辛苦。 译文 盛夏中午,烈日炎炎,农民还在劳作,汗珠滴入泥土。有谁想到,我们碗中的米饭,粒粒饱含着农民的血汗? 阅读全文
posted @ 2019-06-03 14:10 吴裕雄 阅读(570) 评论(0) 推荐(0)
 
吴裕雄--天生自然 诗经:望庐山瀑布
摘要: 望庐山瀑布 【作者】李白 【朝代】唐 日照香炉生紫烟,遥看瀑布挂前川。 飞流直下三千尺,疑是银河落九天。 译文 注释 香炉峰在阳光的照射下生起紫色烟霞,远远望见瀑布似白色绢绸悬挂在山前。高崖上飞腾直落的瀑布好像有几千尺,让人恍惚以为银河从天上泻落到人间。 阅读全文
posted @ 2019-06-03 14:09 吴裕雄 阅读(277) 评论(0) 推荐(0)
 
上一页 1 ··· 210 211 212 213 214 215 216 217 218 ··· 276 下一页