摘要: 其实冒号后的内容是初始化成员列表,一般有三种情况: 1、对含有对象成员的对象进行初始化,例如, 类line有两个私有对象成员startpoint、endpoint,line的构造函数写成: line(int sx,int sy,int ex,int ey):startpoint(s... 阅读全文
posted @ 2016-09-18 09:31 洛笔达 阅读(881) 评论(0) 推荐(0) 编辑
摘要: //把图片加载到SDL_TextureSDL_Texture* loadTexture(const std::string &file, SDL_Renderer *ren){ SDL_Texture *texture = nullptr; SDL_Surface *lo... 阅读全文
posted @ 2016-09-13 10:57 洛笔达 阅读(505) 评论(0) 推荐(0) 编辑
摘要: souid.lib;utilitiesd.lib;pthreadVC2.lib;链接默认输出:$(OutDir)$(TargetName)$(TargetExt) 阅读全文
posted @ 2016-09-09 15:32 洛笔达 阅读(165) 评论(0) 推荐(0) 编辑
摘要: DATE=$(date +%Y%m%d_%H%M%S)cd /opt/anystreaming/transcoder/mv dll/libmonitor_service.so "dll/libmonitor_service.so"_${DATE}mv dll/monitor_service.xml ... 阅读全文
posted @ 2016-09-07 17:12 洛笔达 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 我们用gcc编译程序时,可能会用到“-I”(大写i),“-L”(大写l),“-l”(小写l)等参数,下面做个记录:例:gcc -o hello hello.c -I /home/hello/include -L /home/hello/lib -lworld上面这句表示在编译hello.c时:-I ... 阅读全文
posted @ 2016-09-07 11:52 洛笔达 阅读(3657) 评论(0) 推荐(0) 编辑
摘要: 强制升级步骤一:准备一张2G以上容量的SD卡,建议使用Sandisk, Kingstone, 或Kingmax。步骤二:格式化SD卡(可选)。步骤三:确认一下dload目录中存在UPDATE.APP文件,然后将整个dload拷贝到SD卡根目录下。步骤四:同时按住音量上、下键,按开机键,音量上下键持... 阅读全文
posted @ 2016-08-02 23:12 洛笔达 阅读(120) 评论(0) 推荐(0) 编辑
摘要: close the firewellecho 0 > /proc/sys/net/ipv4/conf/ethx/rp_filternet.ipv4.netfilter.ip_conntrack_max或者/etc/sysctl.conf 中添加或者修改如下项# Uncomment the next ... 阅读全文
posted @ 2016-07-18 13:08 洛笔达 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 1. error LNK2005: "void __cdecl ······已经在 ChildView.obj 中定义 的可能原因1)头文件重复包含了,加入#pragma once ;2)将头文件和全局函数写在了一个文件里面,应该分开写,1个头文件,1个cpp文件; 阅读全文
posted @ 2016-06-28 00:30 洛笔达 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 【C++专题】static_cast, dynamic_cast, const_cast探讨 首先回顾一下C++类型转换:C++类型转换分为:隐式类型转换和显式类型转换第1部分. 隐式类型转换又称为“标准转换”,包括以下几种情况:1) 算术转换(Arithmetic conversion) : 在混... 阅读全文
posted @ 2016-05-21 22:32 洛笔达 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Linux系统下的多线程遵循POSIX线程接口,称为pthread。编写Linux下的多线程程序,需要使用头文件pthread.h,连接时需要使用库libpthread.a。与vxworks上任务的概念类似,都是调度的最小单元,都有共享的堆、栈、代码区、全局变量等。 2. 创建线程int pt... 阅读全文
posted @ 2016-05-21 18:10 洛笔达 阅读(591) 评论(0) 推荐(0) 编辑