标签: c++
我是初学C ++并使用ubuntu 12.我在使用getopt函数时遇到问题,特别是匹配命令行参数(int main(int argc,char * argv [])和optstr in getopt。任何人都可以解释在getopt函数中可以匹配的命令行参数的格式。
答案 0 :(得分:1)
getopt函数shuld也有#include <unistd.h>
#include <unistd.h>
Manual page and examples