c++_work

        while((ch=getopt(argc, argv, "X:Y:C:")) != EOF) 
        { 
                switch((char)ch) 
                { 
                        case 'X': 
                        strcpy(strSection, optarg); 
                        break; 
                        case 'Y': 
                        strcpy(strInstId, optarg); 
                        break; 
                        case 'C': 
                        strcpy(strSysId, optarg);//LogFile Name 会用 ELR,ELRQ,ELRC,ELR2 
                    break; 
                        exit(O); 
                } 
        } // Check the input parameter does exist or not

 

posted @ 2019-01-08 10:08  彪悍的代码不需要注释  阅读(227)  评论(0编辑  收藏  举报
39
0