📄 bw_cmd_0.cc
字号:
// file: bw_cmd_0.cc//// isip include files//#include "bw_train.h"#include "bw_train_constants.h"// method: read_cmdline_cc//// arguments:// int_4 argc : (input) number of arguments// char_1** argv : (input) argument variables// char_1* prm_file : (output) name of the parameters file//// return: a logical_1 flag indicating success//// this method reads the commandline and deciphers the various// arguments and options//logical_1 read_cmdline_cc(int_4 argc_a, char_1** argv_a, char_1* prm_file_a) { // create the help message // char_1* cmd_str = new char_1[ISIP_MAX_STRING_LENGTH]; sprintf((char*)cmd_str, (char*)ISIP_HELP_FORMAT, (char*)BW_HELP_FILE); // decipher the commandline arguments // for (int_4 i = 0; i < argc_a; i++) { // check if the help message needs to be printed // if (argc_a < 3) { // print the help message // system((char*)cmd_str); // exit gracefully // exit(ISIP_PROTO_ERROR); } // decipher the commandline // if (i > 0) { // read the name of the parameter file // if (strcmp(BW_PARAMS_OPT, (char*)argv_a[i]) == 0) { strcpy((char*)prm_file_a, (char*)argv_a[++i]); expand_filename_cc(prm_file_a); } // otherwise print the help message // else { system((char*)cmd_str); // exit gracefully // exit(ISIP_PROTO_ERROR); } } } // free memory // delete [] cmd_str; // exit gracefully // return ISIP_TRUE;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -