mygetopt.h
来自「ears-0.32, linux下有用的语音信号处理工具包」· C头文件 代码 · 共 25 行
H
25 行
#ifndef Mygetopt_h#define Mygetopt_h#include <getopt.h>class GetOpt{public: GetOpt (int c, char** v, char* s) : c_(c), v_(v), s_(s) { opterr=0; } char* optarg; int operator()() { int c = getopt (c_,v_,s_); optarg = ::optarg; return c; } private: const int c_; char **v_, *s_;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?