
C++ language
文章平均质量分 54
Diehard_Yin
New blogs contents are posted here: https://medium.com/@lisulimowicz
展开
-
矩阵的C++实现
最近在写一些代码,用到的转载 2014-11-08 00:37:57 · 1183 阅读 · 0 评论 -
生成一定范围的随机数
#include using namespace std;const float MAXWEIGHT = 0.3;const float SCALEWEIGHT = 32767;void main(){float frand=rand();float frand1 = rand(); float a=MAXWEIGHT*(1.0-2*frand/SCALEWEIGHT);原创 2014-11-12 23:41:43 · 2276 阅读 · 0 评论 -
C++模板
C++模板 模板是C++支持参数化多态的工具,使用模板可以使用户为类或者函数声明一种一般模式,使得类中的某些数据成员或者成员函数的参数、返回值取得任意类型。 模板是一种对类型进行参数化的工具; 通常有两种形式:函数模板和类模板; 函数模板针对仅参数类型不同的函数; 类模板针对仅数据成员和成员函数类型不同的类。 使用模板的目的就是能够让程序转载 2014-09-08 14:02:33 · 660 阅读 · 0 评论 -
C++ 迭代器删除remove/erase
1. call_info_list_.remove_if(CallIdCompare(pca->cid_));原创 2014-08-30 15:31:30 · 5545 阅读 · 0 评论 -
编译原理相关书籍
编译原理面比较书三本别龙书、虎书、鲸书三本书编译原理面权威三本书物命名三本封面别印三种物三本书 全名: 1.龙书(Dragon book) 书名Compilers: Principles,Techniques,and Tools 2.鲸书(Whale book) 书名:Advanced Compiler Design and Implementation 3.虎书(Tiger b转载 2015-05-22 10:09:20 · 860 阅读 · 0 评论 -
Special cases in C++ program
Recently, I have accepted the challenge to read code in a github repository called mshadow. But only from the language grammar. I found that I could not understand templateSo what I do is to search原创 2015-11-13 05:34:36 · 799 阅读 · 0 评论