#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 192
下载积分: 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 个回复

  • ledmon
    2378 example code - flash led
    2011-12-27 09:02:07下载
    积分:1
  • 制作电子印章
    该程序采用opencv读取印章RGB值,绘制4通道png格式的电子印章
    2022-07-17 12:23:40下载
    积分:1
  • OFDM_simln
    Basic Model of Orthogonal Frequency Division MUltiplexing
    2010-07-22 16:44:06下载
    积分:1
  • C#在线升级程序源码样例
    C#在线升级程序源码样例,比较简单的写法,可以借鉴一下,很实用
    2022-09-03 21:15:03下载
    积分:1
  • lpc900_uart_brg
    LPC932 EXAMPLE: COMMUNICATION WITH THE PC USING THE SERIAL INTERFACE
    2007-11-22 21:06:12下载
    积分:1
  • BMP_ROTATE
    自己按照网上的源码做的3D图形变化的修改,实现一个BMP图片的旋转,基本实现,但还没有完全完成(Your online source according to the 3D graphics make changes changes to implement a BMP image of the rotation, basically, but not entirely complete)
    2010-08-20 10:53:56下载
    积分:1
  • SunCal
    用C#写的进行太阳高度角,太阳倾角,以及日照时数的计算的程序,通过输入经度和纬度,以及时间,即可得出需要的精确的地理用科学计算数字!(written in C# for the angle of the sun, the sun angle, and sunshine hours in the calculation process, through the importation of longitude and latitude and time can be obtained by the precise geographical scientific calculations!)
    2005-07-07 12:57:39下载
    积分:1
  • Dsound
    说明:  DirectX声音编程及管理,Visual+C++音频视频处理技术及工程实践本光盘实例源文件第4张(DirectX Sound Demo and DirectX Sound Manager)
    2010-05-03 20:47:22下载
    积分:1
  • SV_PWM
    tms320F28335是一款新的dsp芯片,svpwm算法的实现和以前的2812等有点不同,现在将我写的分享给大家,已经调试过了,晶振是20MHz。28335的svpwm的实现。(tms320F28335 is a new dsp chip, svpwm algorithm implementation and the previous 2812 and so a little bit different, now I write for everyone to share, debugging, and the crystal is 20MHz. 28335 svpwm implementation.)
    2014-02-18 10:21:36下载
    积分:1
  • 充放电控制器
    充放电控制器控制程序 共有3种工作状态:空闲态,充放电态,泄放态。空闲态:设备空闲时,可进行设备参数设置,手动控制继电器及晶闸管输出等操作(用于外接电路调试)。充放电态:设备自动控制电容充放电,按“自动”键启动,基本流程:闭合开关,延时1S,根据充电电压,充电电流设置充电器,并开始充电,检测电容两端电压,等待达到充电电压;达到充电电压后,断开开关,延时1S,断开充电器,根据保持时间参数,进行保持计时;闭合开关,等待达到放电电压,达到放电电压后,断开开关,根据间隔时间参数,进行间隔计时,蜂鸣器短鸣3次,充放电次数加1,开始下一轮充放电;若充放电次数满,长鸣两次,设备进入空闲状态。泄放态:对电容进行泄放操作,开关闭合,按“泄放”键启动;
    2022-05-15 00:04:04下载
    积分:1
  • 696518资源总数
  • 106259会员总数
  • 28今日下载