- 博客(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 859
原创 Ubuntu 将avi转为MP4
经avi文件转MP4,并保持原本的声音,命令行如下:ffmpeg -i test.avi -strict -2 -qscale 0 output.mp4
2020-07-16 16:56:23 752
原创 c/c++ 读文件写文件的相关操作
//总结C/C++与读文件、写文件的相关操作1)读文件中的某一行#include <iostream>#include <fstream>#include <vector>void getData(const std::string&file, std::vector<std::string> &data){ std::ifs...
2018-07-13 11:51:53 323
原创 C++获取文件夹下具有特殊后缀的所有文件名(Ubuntu)
#include <iostream>#include <vector>#include <string.h> //包含strcmp的头文件,也可用: #include <ctring>#include <dirent.h>void getFileNames(std::string path, std::vector<std::st...
2018-07-13 10:29:23 1155
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人