首页 | 本学科首页   官方微博 | 高级检索  
     

C语言常见错误分析
引用本文:张家明. C语言常见错误分析[J]. 数字社区&智能家居, 2006, 0(29)
作者姓名:张家明
作者单位:山东理工大学工程技术学院 山东淄博255049
摘    要:本文通过具体实例讲解了C语言程序设计过程的几个常见错误:(1)使用未定义的变量;(2)进行非法运算;(3)输入数据的方式与要求不符;(4)循环语句中的死循环;(5)复合语句漏掉花括号;(6)利用“==”比较字符串是否相等;(7)误把“=”作为关系运算中的“等于”运算符;(8)指针变量未正确赋值之前就引用;

关 键 词:C语言  错误分析

In C Language Conmmon Error Analysis
ZHANG Jia-ming. In C Language Conmmon Error Analysis[J]. Digital Community & Smart Home, 2006, 0(29)
Authors:ZHANG Jia-ming
Abstract:This article common explainned C language programming process several through the concrete example wrong: (1) uses the variable which has not defined; (2) carries on the illegal operation; (3) data-in way and request not symbol; (4) in cyclic sentence endless loop; (5) the compound statement leaves out the brace; (6) uses "==" the comparison character string is whether equal; (7)"=" took by mistake in the relational operation "is equal to" the operator; (8) before indicator variable not correct evaluation quotes.
Keywords:C language  Error analysis
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号