2018-01-30 Vaniot
C++
一、常用的STL包含的文件 1 迭代器 #include 2 输入输出流 #include 标准输入输出流 #include 文件输入输出流 #include 字符串输入输出流 3 字符串 #include 4 函数对象 #include 3 通用容器 #include 4 向量容器 #include 双端队列 #include 链表容器 #include 队列 ,优先队列 #include 堆栈 #include 集合 继续阅读 »
2017-02-20 Lu Huang
本文翻译和总结与 kaldi.org。本文主要介绍 kaldi 代码的组织结构以及依赖结构,以及一些修改和调试代码的经验。如果想更深入了解,可以点击这里。 常用的使用工具 进入 src/base/,查看 kaldi-common.h,其内容主要为下: ```c++ ifndef KALDI_BASE_KALDI_COMMON_H_ define KALDI_BASE_KALDI_COMMON_H_ 1 include include include // C string stuff like strcpy include include include include include 继续阅读 »
2018-02-03 张炎泼
mdtoc start include_tasks 和 import_tasks 例子 示例结果: 继续阅读 »
2015-06-23 Klaus Ma
#if __cplusplus >= 201103L #include #else // __cplusplus >= 201103L #include #endif // __cplusplus >= 201103L 继续阅读 »
2013-06-29 Robert Zhang
分析:用什么样的数据结构来表示投票有很多选择;如果选择了合适的数据结构,不但可以提高时间效率还可以简化编程。more ```cpp include include include include include include 继续阅读 »
2013-05-08 Robert Zhang
分析:把一堆煎饼按自底向上的顺序插入到数组中(这样饼号就等于元素下标号加一),然后从数组第一个元素开始向后遍历,每次把最大的煎饼放在遍历的当前位置。more ```cpp include include include include include 继续阅读 »
2013-06-26 Robert Zhang
分析:按从上到下、从左到右的顺序对矩阵中每一个字符向八个方向查找是否存在一个以它开头的单词。more ```cpp include include include include include 继续阅读 »
2013-05-05 Robert Zhang
分析:注意到“the quick brown fox jumps over the lazy dog”包含了全部26个英文字母,所以只要找到一句相匹配的密文,就可以解密全部了。more ```cpp include include include include include 继续阅读 »
2013-06-23 Robert Zhang
分析:分解质因数,求各位数字之和。如果担心当n等于10亿时,Smith数的计算会使unsigned int溢出,可以先试算一下——其实不小于10亿的最小Smith数是1000000165,不算大。more ```cpp include include include include 继续阅读 »
2013-05-03 Robert Zhang
more ```cpp include include include include using namespace std; const char * values[] = {"2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King", "Ace"}; const char * suits[] = {"Clubs", "Diamonds", "Hearts", "Spades"}; 继续阅读 »