期刊文献+

程序设计在线作业代码不规范检测方法及应用 被引量:1

Standardization Method for Online Code of Programming Contest
下载PDF
导出
摘要 针对程序初学者编写的C/C++程序,调试需要消耗大量的时间和精力。然而,初学者在接触简单的编程时,编写思路一般不存在问题,但由于其良好的编程习惯还未养成,代码格式往往不规范,从而导致程序相应代码块出错。本文结合程序在线评测系统,针对程序设计课程的C/C++程序代码不规范问题提出了一种基于在正则表达式和编辑距离的检测方法并通过实验验证了不规范的代码出现错误概率较大。 For inexperienced programmers,it costs lots of effort to debug and fix C/C++ program errors. When beginners get in touch with the simple programming problem,the solution methods are always correct. Due to their poor programming experiences and inadequate programming habit,the code formatting is incorrect,which leads to incorrect outputs. Motivated by the prospect of reducing human developer involvement, this paper proposed a detection method,especially for the code segment standardization,and applied this method to detect bugs of incorrect code formatting of C/C++ language programs.
作者 杜彬 贺杰 徐阳 王林鑫 尤枫 DU Bin;HE Jie;XU Yang;WANG Lin-xin;YOU Feng(College of Information Science &Technology,Beijing University of Chemical Technology,Beijing 100029,China)
出处 《教育教学论坛》 2018年第44期154-155,共2页 Education And Teaching Forum
基金 北京化工大学研究生教育教学改革项目 "互联网+"形势下高校研究生安全管理微信平台体系 项目编号:G-JG-PT201602 北京化工大学本科生教育教学改革项目 "科研项目+竞赛"驱动的计算机专业人才创新实践能力培养与实践 项目编号:B201408
关键词 软件测试 代码格式规范 程序在线评测系统 software testing code segment standardization online judge system
  • 相关文献

参考文献3

二级参考文献22

  • 1Herb S, Andrei A. C++ Coding Standards 101 Rules, Guidelines, and Best Practices[M]. Australia:Pearson Education Asia Ltd, 2006.
  • 2FANG X. Using a Coding Standard to Improve Program Quality[C]//Proceedings of Second Asia-Pacific Conference on Quality Softwar. Los Alamitos, CA,USA: Ieee Compiter Society, 2001:73-78.
  • 3LI Xiao-song. Effectively Teaching Coding Standards in Programming[C]//SIGITE05. New Jersey, USA: ACM Press, 2005 : 239- 244.
  • 4WANG Yan-qing, WANG Jian-zheng, SUI Xiang nan, et al. Quantitative Research on How Much Students Comply with Coding Standard in Their Programming Practices[C]//Proceedings of the 3rd China Europe International Symposium on Software Industry Oriented Education (CEIS-SIOE2007), Dublin, Ireland: Blackhall Publishing, 2007 : 116-119.
  • 5SPSS Inc. SPSS 15.0 for Windows[EB/OL]. (2006 10-01)[2007-03 02]. http://www. spss. com/registration/index. cfm? Demo_ID=37>.
  • 6Dyer J S. Remarks on the Analytic Hierarchy Process[J]. Management Science, 1990,36 (3): 249-258.
  • 7姜启源,谢金星,叶俊.数学建模(第3版)[M].北京:高等教育出版社,2003:224-244.
  • 8Steve M,Code Complete 2(第2版)[M].北京:电子工业出版社,2006.
  • 9NIST. The economic impacts of inadequate infrastructure for software testing, planning report 02-31 [R]. 2002.
  • 10BAI,LOU M C. Improving software quality to drive business agility [ R/OL]. ( 2008- 06 ). http ://www. coverity, conWlibrary/pdf/IDC_ Improving Software_Quality_June_2008. pdf.

共引文献41

同被引文献2

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部