C++ string和数字间的任意转换
摘要:哈哈,再也不用记stoi stoll。。。这一堆函数了 #include <sstream> template <class SRC, class DST> void Str22Num(SRC& src, DST& dst) { std::stringstream in; in << src; st
阅读全文
posted @
2021-12-15 16:50
林西索
阅读(70)
推荐(0)
ffmpeg第三方库
摘要:转自:https://www.cnblogs.com/lidabo/p/7324568.html 最近在研究ffmpeg的编译,之前使用的Ubuntu,需要安装虚拟机,非常麻烦,所以后来改研究在Windows平台编译。 一开始遇到很多挫折,参考了网上很多的帖子,但要么不全要么内容已过期,经过我的反复
阅读全文
posted @
2021-12-07 10:55
林西索
阅读(702)
推荐(0)
利用C++特性 析构对象(ScopeGuard.h)
摘要:#include <functional> #pragma once class CScopeGuard //用于延迟执行构造函数传入的函数 { //public: // CScopeGuard(); // ~CScopeGuard(); public: explicit CScopeGuard(s
阅读全文
posted @
2021-12-03 17:18
林西索
阅读(105)
推荐(0)