摘要:
google面试题: #include #include #include using namespace std; struct Node { char data; Node * left; Node * right; }; enum Tag{goLeft, goRight, goBack }; /* 打印从根到叶子结点之路径 */ void PrintP... 阅读全文
摘要:
google面试题: 只能在堆上创建的对象,代码如下 class HeapOnly { public: void destroy() const { delete this; } private: ~HeapOnly(){}; }; int main() { //HeapOnly obj; HeapOnly *pobj =... 阅读全文