이 코드가 있고 String args []가 여기에서 의미하는 바가 무엇인지, 그리고 입력으로 어떻게 사용할 수 있는지 궁금합니다. 많은 온라인 주석을 읽었지만 여전히이 감사에 대해 혼란스러워합니다.
static int parse_commandline(String args[]) {
// TODO range check
if (args.length == 0) {
System.err.println("No options are specified.");
System.err.println("Try `--help' for more information.");
System.exit(1);
}
Options options = new Options();
options.addOption("r", "tries", true, "# number of independent trials");
options.addOption("s", "tours", true, "# number of steps in each trial");
options.addOption("t", "time", true, "# maximum time for each trial");
options.addOption("seed", true, "# seed for the random number generator");}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다