摘要:
#pragmaonceclassIAnimal{public: IAnimal(void); ~IAnimal(void); public: virtualvoidShowMsg()=0;};#include"IAnimal.h" IAnimal::IAnimal(void){} IAnimal::~IAnimal(void){}#pragmaonce#include"people.h"classCManager:publicCPeople{public: CManager(void); ~CManager(void);public: voidShowM 阅读全文
摘要:
char startDatetimeFir[20] = "20130610151521"; char startDatetimeSec[20] = "20130610143525"; date dtFirst = from_undelimited_string(startDatetimeFir); date dtSecond = from_undelimited_string(startDatetimeSec); if (dtFirst == dtSecond) { cout << "EQ" << endl; 阅读全文
摘要:
#include <string>#include <cmath>#include <iostream>using namespace std;#include <asio.hpp>class Point{private:int m_nX;int m_nY;public:Point(){this->m_nX = 0;this->m_nY = 0;}Point(int x, int y){this->m_nX = x;this->m_nY = y;}void ShowPoint(){cout << "坐 阅读全文
摘要:
#include <Windows.h>#include <iostream>#include <boost/timer.hpp>using namespace boost;using namespace std;int main(){timer tm;double sum = 0;for (int i=0; i<1000000000; i++){sum += i;}cout << sum << "OK" << endl;double duration = tm.elapsed();cout &l 阅读全文