#include#includeusingnamespacestd;usingnamespaceTestSuite;voidSuite::addtest(Test*t)throw(TestSuiteError){   //verifytestisvalidandhasastream:   if(t==0)   {      throwTestSuiteError("NulltestintSuite::addtest");   }   elseif(osptr!=NULL&&!t->get_stream())   {      t->set_stream(osptr);   }   tests.push_back(t);   t->reset();}voidSuite::addsuite(constSuite&s){   for(size_ti=0;i #include#includeusingnamespacestd;usingnamespaceTestSuite;voidSuite::addtest(Test*t)throw(TestSuiteError){   //verifytestisvalidandhasastream:   if(t==0)   {      throwTestSuiteError("NulltestintSuite::addtest");   }   elseif(osptr!=NULL&&!t->get_stream())   {      t->set_stream(osptr);   }   tests.push_back(t);   t->reset();}voidSuite::addsuite(constSuite&s){   for(size_ti=0;i
登录
首页 » c++ » TestSuite, for thinking in c++

TestSuite, for thinking in c++

于 2022-04-11 发布 文件大小:1.31 kB
0 92
下载积分: 2 下载次数: 1

代码说明:

//: TestSuite:Suite.cpp {0} #include "Suite.h" #include #include #include using namespace std; using namespace TestSuite; void Suite::addtest(Test* t) throw(TestSuiteError) {     // verify test is valid and has a stream:     if (t == 0)     {         throw TestSuiteError("Null test int Suite::addtest");     }     else if (osptr != NULL && !t->get_stream())     {         t->set_stream(osptr);     }     tests.push_back(t);     t->reset(); } void Suite::addsuite(const Suite& s) {     for (size_t i = 0; i < s.tests.size(); ++i) &nb

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • zy200512345
    这是编译原理的源代码,涉及了编译原理的各个过程:词法分析,LL1语法分析,语义分析,中间代码生成,中间代码优化(常表达式优化,公共表达式优化,循环不变式优化),中间代码生成目标代码,目标代码的解释执行.. (this principle is to compile the source code, the compiler principles involved in various processes : lexical analysis, LL1 syntax analysis, semantic analysis and code generation and code optimization (regular expression optimization, public expression optimization, optimization loop invariant), intermediate code generation target code goal of the interpretation and implementation of code ..)
    2005-05-30 16:59:18下载
    积分:1
  • backgroundworker
    Well, this is a Visual Studio program which monitors temperatures Arduinoin background!
    2014-12-03 04:10:59下载
    积分:1
  • arpflood
    绝对的好东西dfdfdfdfdfafasfsdfsfdfsfasfdsfafdsfsdfsfsdf
    2022-03-21 00:38:07下载
    积分:1
  • EfficientC++PerformanceProgrammingTechniquess
    C++经典的好书,英文原版的,chm电子文档方便阅读。(C++ Classic book, the English original, chm easy to read electronic documents.)
    2007-12-09 19:33:55下载
    积分:1
  • 吉尔法求解一阶微分方程组
    吉尔法求解一阶微分方程组的算法(Gil Solving equations a band algorithm)
    2005-01-04 20:19:29下载
    积分:1
  • TIM1
    STM8单片机TIM1计数器精确定时后进入中断函数(STM8 microcontroller TIM1 counter precise timing after entering the interrupt function )
    2015-04-16 16:11:13下载
    积分:1
  • stm32
    德飞莱STM32系列尼莫M3S V1.0开发板资料4-配套程序出厂附带-ucGUI 测试程序( De Feilai STM32 series Nemo M3S V1.0 development board data 4- Companion Programs test program shipped with-ucGUI)
    2020-12-29 22:59:01下载
    积分:1
  • VCPP-image-processing-chapter09
    VisualC++数字图像处理技术详解第2版-光盘 第九章(VisualC++ digital image processing technology Detailed Version 2- CD Chapter IX)
    2016-04-16 13:59:03下载
    积分:1
  • C语言实现贪吃蛇小游戏
    说明:  C语言实现贪吃蛇小游戏 贪吃蛇游戏 贪吃蛇游戏(C language to achieve Snake game)
    2020-07-03 15:54:10下载
    积分:1
  • 支持多种格式图片的LIB
    一个支持多种图形文件格式的函数库,如果需要,你可以修改源代码,生成自己的函数库。(support a variety of graphics file formats libraries, if necessary, you can modify the source code, generate their own libraries.)
    2005-07-04 10:08:43下载
    积分:1
  • 696518资源总数
  • 104271会员总数
  • 70今日下载