C++
BSOD_aura
这个作者很懒,什么都没留下…
展开
-
链表的基本使用
链表的基本使用 创建链表,添加元素,删除元素 #include "iostream" using namespace std; struct node { int data; node *next; }; class list { node *head; public: list() { head=NULL; }原创 2015-08-02 15:28:26 · 433 阅读 · 0 评论 -
二叉树的基本使用
创建树,前序遍历,中序遍历,后序遍历,查找二叉树结点个数,查找二叉树叶子结点个数,查找二叉树度数为1的结点的个数 #include "iostream" using namespace std; struct tree { int data; tree *left,*right; }; class Tree { static int n; st原创 2015-08-02 22:08:00 · 1099 阅读 · 0 评论 -
C++客户端对mongodb的调用语法
mongodb查询语法与SQL语法对比 SQL Statement Mongo Query Language Statement C++客户端调用语法 using namespace bson; DBClientConnection c; c.connect("somehost"); CREATE TABLE USERS (a转载 2016-03-28 16:59:56 · 1251 阅读 · 0 评论