上一页 1 ··· 6 7 8 9 10
摘要: /* function template programmer:qpz*/#include using namespace std;template class Myclass{private: T x,y;public: Myclass(T x,T y) { ... 阅读全文
posted @ 2014-12-15 20:56 机智的程序员小熊 阅读(144) 评论(0) 推荐(0) 编辑
摘要: /* 赋值兼容规则 作者:qpz */#include #include using namespace std;class Base{private: int x; int y;public: Base(int x,int y) { this->x=x; ... 阅读全文
posted @ 2014-12-15 20:56 机智的程序员小熊 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //循环队列//约瑟夫环#include#include#include#define Size 10using namespace std;class Joseph{private: int num[Size];//队列 int first;//第一个人 in... 阅读全文
posted @ 2014-12-15 20:56 机智的程序员小熊 阅读(693) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10