摘要:
Java与混型C++中存在一种叫混型的东西,他可以通过Template动态的构建继承链#include <string>#include <ctime>#include <iostream>using namespace std;template<class T> class TimeStamped : public T { long timeStamp;public: TimeStamped() { timeStamp = time(0); } long getStamp() { return timeStamp; }};template< 阅读全文