CPP Note】的更多相关文章

hello.cpp -> 编译代码g++ hello.cpp -o a -> a.out 区分大小写的编程语言 内置类型 一些基本类型可以使用一个或多个类型修饰符进行修饰: signed: char, int unsigned: char, int short: int long: int, double 类型 字节 bool char 1 int 4, 2(short), 8(long) float 4 double 8 void wchar_t(宽字符型) 2, 4 typedef 声明…
为了研究基于thrift的RPC框架,其实,是想自己基于thrift写一个微服务的platform.首先就是安装Thrift,便于IDL架构生成java的接口文件.多的不说了,开始install的过程吧. 我的机器,环境信息如下: 联想笔记本,Centos6.8的系统. 步骤: 1. 安装平台开发工具 yum -y groupinstall "Development Tools" 2. 安装autoconf wget http://ftp.gnu.org/gnu/autoconf/au…
如何修改 zoomRatio   修改过程:   1, 先找到 gZoomRatio 数组序列的值   Location: V:\project_code\project_name\ALPS.JB.MP.V1_W_20120919\mediatek\platform\mt6577\hardware\camera\hal\CamAdapter\mHal\mHalCamParameters.cpp    /***********************************************…
How to change the AlexNet into FCNs ? FCNs is a network that only contain convolution layers and no fc layer at all. It's structure can be shown as the following figures: This image from the paper : <Fully Convolutional Networks for Semantic Segmenta…
目录(?) C/C++ 预定义宏^ C/C++ 预定义宏用途:诊断与调试输出^ CRT 和 C 标准库中的宏^ NULL 空指针^ limits.h 整数类型常量^ float.h 浮点类型常量^ math.h 数学常量^ EOF 常量^ errno.h 错误代码^ locale 类别^ _MAX_PATH 等文件名与路径长度限制^ RAND_MAX 随机数最大值^ va_arg/va_start/va_end 访问变长函数参数^ 宏实现的 CRT 函数^ Microsoft 预定义宏^ 平台与…
下载 svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver 安装: 1. 按照文档sudo apt-get install g++ subversion cmake make libssl-dev,还是出现 -- The C compiler identification is GNU -- The CXX compiler identif…
1,使用Qt面向对象类继承创建第一个窗口主部件,使用setMinimumSize(),setMaximumSize()配置主部件窗口是否能够resize;…
我们都知道可以使用using关键字引入命名空间,例如:using namespace std; using还有个作用是在子类中引入父类成员函数. 1) 当子类没有定义和父类同名的函数(virtual也一样)时,子类是可以直接调用父类的函数的: #include <iostream> #include <cstring> using namespace std; class CBase { public: void print() { cout << "Base…
当给 thread 的执行函数传递指针参数时,没有任何问题,但是如果想传递引用,按照普通函数的调用方法会遇到编译失败: #include <iostream> #include <thread> #include <string> int main() { std::string a("Hello"); std::cout << "address = " << &a << "\…
_ZTS7QObject 一.Q_D的在文件中的提法 Q_D的设置意在方便地获取私有类指针,文件为qglobal.h.下面的##是宏定义的连字符.假设类名是A,那么A##Private翻译过来就是APrivate. #define Q_D(Class) Class##Private * const d = d_func() d_func()函数如下实现: #define Q_DECLARE_PRIVATE(Class) \ inline Class##Private* d_func() { re…