摘要
在C语言程序设计课程教学中,经常会遇到溢出问题,是日常教学中的难点。C语言程序设计的溢出问题主要有数据的溢出、指针的溢出、数组的溢出等多种情况,危害均很严重。轻则导致数据出错,编译运行的结果与预期相去甚远。重则将直接导致安全问题,为黑客的攻击提供机会。解决溢出的问题首先要提升书写规范意识,并在教学中提前防范,针对不同的溢出原因采用不同的策略。
In the teaching of C language programming course,the overflow problem is often encountered,which is a difficult point.There are many kinds of overflow problems in C language programming,such as data overflow,pointer overflow,array overflow and so on.It will cause great harms if let it be. If it is not so serious,it will lead to data error,and the result of the compilation is far from expected. Seriously,it may bring some security problems which would provide opportunities for hackers’ attacking. To solve the problem of overflow,we should first improve the awareness of writing codes,and take precautions in teaching,adopt different strategies according to different overflow reasons.
作者
贺琼
祝丰菊
HE Qiong;ZHU Feng-ju(School of Intelligent Engineering,Hubei Industrial Polytechnic,Shiyan 442000,China)
出处
《湖北工业职业技术学院学报》
2020年第6期80-82,共3页
Journal of Hubei Industrial Polytechnic