摘要: 1972年~1973年间,贝尔实验室的 Dennis M.Ritchie 在 B 语言的基础上设计出了 C语言(取BCPL的第二个字母)。.. 阅读全文
posted @ 2016-06-07 13:05 慕阳 阅读(394) 评论(0) 推荐(0) 编辑
摘要: while ( condition ) statement 执行流程: 检测 condition 为 false 将退出while循环流程!为 true,则会执行 statement(一般在此预知运算会影响到 condition 为 false,否则为“死循环”),再检测 condition 如此循环下去.. 阅读全文
posted @ 2017-05-12 12:05 慕阳 阅读(175) 评论(0) 推荐(0) 编辑
摘要: for ( init-statement; condition; expression ) statement init-statement -初始化语句 condition -循环条件,产生true或false的表达式 expression -表达式 statement -语句,... 阅读全文
posted @ 2017-05-12 12:00 慕阳 阅读(223) 评论(0) 推荐(0) 编辑
摘要: if ( condition ) statement else statement2 执行流程: 检测 condition 为 true 执行 statement,否则执行 statement2。... 阅读全文
posted @ 2017-05-12 11:54 慕阳 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一、运行 Visual Studio x64 兼容工具命令提示(2010) 二、进入源文件目录 三、使用 cl 命令编译源码... 阅读全文
posted @ 2017-05-12 11:40 慕阳 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 数组由一系列类型相同的元素构成。.. 阅读全文
posted @ 2017-05-04 16:01 慕阳 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 数据类型范围尺寸由编译器厂商根据运行目标机的硬件与系统平台定制优化,但必须遵守 ISO/ANSI 规定:.. 阅读全文
posted @ 2017-04-20 17:36 慕阳 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: include头文件包含、main函数、程序体和代码块、注释、return返回值.. 阅读全文
posted @ 2017-03-03 19:38 慕阳 阅读(355) 评论(0) 推荐(0) 编辑
摘要: C程序一般主要包括以下部分等元素: 1、预处理器指令 2、函数 3、变量 4、语句或表达式 5、(注释).. 阅读全文
posted @ 2017-03-03 16:43 慕阳 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 运算符是指定编译器执行特定的算术或逻辑操作的符号。.. 阅读全文
posted @ 2017-03-03 15:37 慕阳 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 关键字就是已被C语言本身使用,不能作其它用途使用的字。例如关键字不能用作变量名、函数名等。.. 阅读全文
posted @ 2017-03-03 14:09 慕阳 阅读(205) 评论(0) 推荐(0) 编辑