自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 c/c++ 解析输入参数

c++应用程序解析输入参数的示例如下:#include <string>#include <getopt.h> //option解析输入参数const std::string helpInfo =R"(Usage: test --ipath ./ --debug ./ --ipath input file path --debug output file path --help help information)";c

2020-07-17 09:38:55 856

原创 Ubuntu 将avi转为MP4

经avi文件转MP4,并保持原本的声音,命令行如下:ffmpeg -i test.avi -strict -2 -qscale 0 output.mp4

2020-07-16 16:56:23 746

原创 c/c++ 读文件写文件的相关操作

//总结C/C++与读文件、写文件的相关操作1)读文件中的某一行#include &lt;iostream&gt;#include &lt;fstream&gt;#include &lt;vector&gt;void getData(const std::string&amp;file, std::vector&lt;std::string&gt; &amp;data){ std::ifs...

2018-07-13 11:51:53 322

原创 C++获取文件夹下具有特殊后缀的所有文件名(Ubuntu)

#include &lt;iostream&gt;#include &lt;vector&gt;#include &lt;string.h&gt; //包含strcmp的头文件,也可用: #include &lt;ctring&gt;#include &lt;dirent.h&gt;void getFileNames(std::string path, std::vector&lt;std::st...

2018-07-13 10:29:23 1146

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除