DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 322 323 324 325 326 327 328 329 330 ··· 474 下一页

2014年8月12日

摘要: 本篇教学代码可在GitHub获得:https://github.com/sol-prog/threads。在之前的教学中,我展示了一些最新进的C++11语言内容:1.正则表达式(http://solarianprogrammer.com/2011/10/12/cpp-11-regex-tutoria... 阅读全文
posted @ 2014-08-12 23:00 DoubleLi 阅读(9033) 评论(0) 推荐(2)

摘要: 问题背景[cpp]view plaincopy#includeusingnamespacestd;vectordoubleValues(constvector&v){vectornew_values(v.size());for(autoitr=new_values.begin(),end_itr=n... 阅读全文
posted @ 2014-08-12 22:48 DoubleLi 阅读(3962) 评论(1) 推荐(2)

摘要: 声明:本文是在Alex Allain的文章http://www.cprogramming.com/c++11/c++11-auto-decltype-return-value-after-function.html的基础上写成的。加入了很多个人的理解,不是翻译。转载请注明出处 http://blog... 阅读全文
posted @ 2014-08-12 22:46 DoubleLi 阅读(1271) 评论(0) 推荐(1)

摘要: 声明:本文参考了Alex Allain的文章http://www.cprogramming.com/c++11/c++11-lambda-closures.html加入了自己的理解,不是简单的翻译C++11终于知道要在语言中加入匿名函数了。匿名函数在很多时候可以为编码提供便利,这在下文会提到。很多语... 阅读全文
posted @ 2014-08-12 22:38 DoubleLi 阅读(52722) 评论(1) 推荐(5)

2014年8月11日

摘要: boost 循环缓冲区[cpp]view plaincopy#includeint_tmain(intargc,_TCHAR*argv[]){boost::circular_buffercb(3);//Insertsomeelementsintothebuffer.cb.push_back(1);c... 阅读全文
posted @ 2014-08-11 23:32 DoubleLi 阅读(2230) 评论(0) 推荐(0)

摘要: boost::property_tree读取解析.xml文件1)read_xml 支持中文路径 boost::property_tree::wptree wpt; std::locale::global(std::locale("")); boost::property_tree::xml_pars... 阅读全文
posted @ 2014-08-11 23:28 DoubleLi 阅读(4167) 评论(0) 推荐(0)

摘要: boost::property_tree读取解析ini文件[cpp]view plaincopy#include"stdafx.h"#include#include#includeintmain(){boost::property_tree::ptreept;boost::property_tree... 阅读全文
posted @ 2014-08-11 23:27 DoubleLi 阅读(8417) 评论(0) 推荐(0)

摘要: ffmpeg的调用命令如下:ffmpeg -re -i xxx.mp4 -vcodec copy -acodec copy -f rtsp rtsp://127.0.0.1/live/mystream用ffmpeg做输入测试ffmpeg -re -i "E:\片源\复仇者联盟720p.mov" -v... 阅读全文
posted @ 2014-08-11 23:25 DoubleLi 阅读(2192) 评论(0) 推荐(0)

摘要: crtmpserver流媒体服务器的介绍与搭建(2012-02-29 11:28)标签:crtmpserverC++ RTMP ServerrtmpAdobe FMS(Flash Med流媒体服务器 分类:crtmpserver前言 Adobe的FMS(Flash Media Server)是很... 阅读全文
posted @ 2014-08-11 23:22 DoubleLi 阅读(4227) 评论(0) 推荐(0)

摘要: 1、实现多线程方法:其实就是多个线程同时调用io_service::run for (int i = 0; i != m_nThreads; ++i) { boost::shared_ptr pTh(new boost::thread( boost::bind(&... 阅读全文
posted @ 2014-08-11 23:19 DoubleLi 阅读(19144) 评论(1) 推荐(0)

上一页 1 ··· 322 323 324 325 326 327 328 329 330 ··· 474 下一页