- 博客(6)
- 收藏
- 关注
原创 Mac tree 命令
tree -d -L 2 -d 只输出目录 -L level 输出level层tree -N 原输出文件名,解决tree结构文件目录中文乱码问题
2016-09-29 17:09:41 837
原创 经典排序方法实现
冒泡排序选择排序插入排序快速排序堆排序希尔排序归并排序#include <iostream>#include <string>#include <algorithm>#include <vector>#include <map>#include <unordered_map>#include <string>using namespace std;vector<int> a
2016-09-21 00:50:44 581
原创 C++ STL map容器的排序(按key或value)
template < class Key, // map::key_type class T, // map::mapped_type class Compare = less<Key>,
2016-09-19 22:01:33 3580
原创 素数 筛选获取
https://leetcode.com/problems/count-primes/class Solution {public: int countPrimes(int n) { if(n < 2) return 0; vector<bool> flag(n, true); //flag primes flag[0
2016-09-16 21:20:43 495
原创 Matlab for Mac 中文路径乱码解决
matlabrootmatlabroot/bin下有支持语言的编码文件(language code) lcdata.xml和lcdata_utf8.xml. lcdata.xml支持windows下的编码GB..,默认是使用此文件,在mac下中文乱码。解决方法备份源lcdata.xml,用lcdata_utf8.xml覆盖lcdata.xml,具体操作如下(Matlab command模式):ml
2016-09-12 14:55:31 4235 1
原创 Sublime Text 3 配置
Sublime Text 3 设置Sublime Text 3 设置Sublime插件安装PackageColorSublimeConvertToUTF8 Bracket Highlighter SideBar Enhancements Setting-User 个性化配置终端命令设置sublime text 3 - 3114 注册码References 记录自己的Sub
2016-09-04 10:02:53 843
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人