2014年4月27日
摘要: 8.18 lion B 阅读全文
posted @ 2014-04-27 00:52 aoun 阅读(90) 评论(0) 推荐(0)
  2014年4月25日
摘要: Run-Time Type Identification作用: 在运行时获取指针所指到或参考到的对象型态。说明: 某些编译器默认禁止RTTI,目的是消除性能上的开销。 面向对象更提倡使用虚函数而不是RTTI机制。C++通过typeid, dynamic_cast, type_info来支持RT... 阅读全文
posted @ 2014-04-25 23:14 aoun 阅读(334) 评论(2) 推荐(0)
  2014年4月20日
摘要: If I want to love her, I should more excellent first.Everyday may not a good day, but there's something good everyday 阅读全文
posted @ 2014-04-20 00:32 aoun 阅读(141) 评论(0) 推荐(0)
  2014年4月19日
摘要: syn->(ack, syn)->ack 阅读全文
posted @ 2014-04-19 00:17 aoun 阅读(134) 评论(0) 推荐(0)
摘要: 1 #include 2 3 struct Node{ 4 Node * next; 5 6 Node() { next = NULL;} 7 Node(const Node & node) { 8 next = node.next; ... 阅读全文
posted @ 2014-04-19 00:15 aoun 阅读(325) 评论(0) 推荐(0)
  2014年4月18日
摘要: 1 #include 2 3 struct Node { 4 Node * next; 5 6 Node() { next = NULL;} 7 Node(const Node & node) { 8 next = node.next;... 阅读全文
posted @ 2014-04-18 14:02 aoun 阅读(309) 评论(0) 推荐(0)
摘要: 1 enum Error_code { 2 succeed, 3 overflow, 4 underflow 5 }; 6 7 typedef int Queue_entry; // Now queue element is int 8 9 const int max_... 阅读全文
posted @ 2014-04-18 12:31 aoun 阅读(192) 评论(0) 推荐(0)
摘要: const int max_stack = 10;typedef int Stack_entry; // Now, stack data type is intenum Error_code { succeed, overflow, underflow};class Stack{p... 阅读全文
posted @ 2014-04-18 11:05 aoun 阅读(360) 评论(4) 推荐(0)
摘要: Item x[20];Item * ptr = x;ptr = &(x[0]);ptr = &(x[i]);ptr = x + i; 阅读全文
posted @ 2014-04-18 10:28 aoun 阅读(188) 评论(0) 推荐(0)
  2014年4月17日
摘要: // A example for template// From > P273#include #include #include using namespace std;// class Appleclass Apple {public: Apple() : variety("generic... 阅读全文
posted @ 2014-04-17 16:48 aoun 阅读(149) 评论(0) 推荐(0)