C/C++学习
Rilakkuma
学习,创造。Think Different
展开
-
HashMap Java 和 C++的实现比较
1. Java中Map/HashMap/TreeMap的分析 Map/HashMap其存储是没有顺序的,而TreeMap则是有序存储。 参考链接: http://blog.csdn.net/devillyd/article/details/3135479 http://coolshell.cn/articles/9703.html import java.util.Map; im原创 2014-01-17 16:50:26 · 2202 阅读 · 0 评论 -
C++下string用法总结
参考博文: 1)https://www.byvoid.com/blog/cpp-string 问题1)如果文本格式是:用户名 电话号码,文件名name.txtTom 23245332Jenny 22231231Heny 22183942Tom 23245332... 现在我们需要对用户名排序,且只输出不同的姓名。 参考网页:https://www.byvoi原创 2014-02-17 23:21:07 · 694 阅读 · 0 评论 -
【leetcode刷题】栈的方式先序二叉树
问题: 5.1.1 Binary Tree Preorder Traversal 描述 Given a binary tree, return the preorder traversal of its nodes’ values. For example: Given binary tree {1,#,2,3},1 \2 /3原创 2014-08-29 17:03:30 · 698 阅读 · 0 评论