解析参数:
my /?
my -help
my -a
my -b 10
my -c file1.txt,file2.txt or my -c 1.txt 2.txt
以及组合:
my -a -b 10 -c 1.txt [2.txt 3.txt]
自己试着写了写,发现很麻烦,谁有好的算法?
...全文
352打赏收藏
高分求Console程序输入参数解析算法。要求见内。
程序名称: my.exe 解析参数: my /? my -help my -a my -b 10 my -c file1.txt,file2.txt or my -c 1.txt 2.txt 以及组合: my -a -b 10 -c 1.txt [2.txt 3.txt] 自己试着写了写,发现很麻烦,谁有好的算法?