- 博客(3)
- 收藏
- 关注
原创 Graph Algorithms: Implementation& DFS& Strong Component& BFS & Dijkstra & Bellman Ford
#include #include #include #include #include using namespace::std; class Node; class Edge { public: Edge(Node* start, Node* end, int _cost = 0):from(start),to(end),cost(_cost) {} Node *
2012-06-28 01:27:36 531
原创 汉诺塔(hanoi)算法实现
#include #include #include #include #include #include using namespace::std; class Solution { public: Solution():n(2) { stack tower1; stack tower2; stack tower3; hanoi.push_back(tower1); ha
2012-06-13 10:31:06 2797
原创 Chapter 8. Customizing new and delete
1. Static class members(member variable and function) must be defined outside the class definition (unless they'reconst and integral 2. Set a user specific handler for new. namespace std { ty
2012-06-02 09:50:07 434
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人