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

静态测试C++中定义未使用的变量
引用本文:徐希炜.静态测试C++中定义未使用的变量[J].电脑编程技巧与维护,2009(16):38-40.
作者姓名:徐希炜
作者单位:潍坊职业学院,潍坊,261031
摘    要:软件测试可分为静态测试和动态测试。静态测试就是在不实际运行程序的情况下发现程序中蕴含的问题。以C++编程为例,可以发现在很多的程序中总是定义了大量的变量,但是程序并没有实际使用它们,这是一种非常不好的编程习惯,也是一种常见的故障模型。文中通过对该类问题进行分析,给出一种静态测试方法测试C++中定义未使用的变量;

关 键 词:静态测试  语法树  控制流图  状态机

Define Never Used Variables Within C++ Static Testing
XU Xiwei.Define Never Used Variables Within C++ Static Testing[J].Computer Programming Skills & Maintenance,2009(16):38-40.
Authors:XU Xiwei
Affiliation:XU Xiwei(Weifang vocational college,Weifang 261031)
Abstract:Software testing can be classified as two categories,static testing and dynamic.Static testing that is never through the execution of the program to find the defect which maybe within the program.Take the C ++ language as an example,there are may be many variables which have been defined in functions but never be referenced then.It is not a good programming style even a common defect model,this article gave a static testing method to find such defect through the analysis of the problem namedvariable that is...
Keywords:static testing  syntax tree  controlling stream graph  state machine  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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