Linux下C++自定义输入指令(长命令)
#include<iostream>
#include<unistd.h>
#include<getopt.h>
int main(int argc,char*argv[]){
int opt=0;
const char *optstring="hi:";
struct option long_opts[] =
{
{"help",no_argument, NULL, 'h'
原创
2020-05-20 20:47:19 ·
530 阅读 ·
0 评论