亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? getopt.java

?? JAVA版本的支持向量機(SVM)處理器。可配置參數。
?? JAVA
字號:
//package Utilities;// OVERVIEW://// GetOpt provides a general means for a Java program to parse command// line arguments in accordance with the standard Unix conventions;// it is analogous to, and based on, getopt(3) for C programs.// (The following documentation is based on the man page for getopt(3).)// DESCRIPTION://// GetOpt is a Java class that provides one method, getopt,// and some variables that control behavior of or return additional// information from getopt.//// GetOpt interprets command arguments in accordance with the standard// Unix conventions: option arguments of a command are introduced by "-"// followed by a key character, and a non-option argument terminates// the processing of options.  GetOpt's option interpretation is controlled// by its parameter optString, which specifies what characters designate// legal options and which of them require associated values.//// The getopt method returns the next, moving left to right, option letter// in the command line arguments that matches a letter in optString.// optString must contain the option letters the command using getopt// will recognize.  For example, getopt("ab") specifies that the command// line should contain no options, only "-a", only "-b", or both "-a" and// "-b" in either order.  (The command line can also contain non-option// arguments after any option arguments.)  Multiple options per argument// are allowed, e.g., "-ab" for the last case above.//// If a letter in optString is followed by a colon, the option is expected// to have an argument.  The argument may or may not be separated by// whitespace from the option letter.  For example, getopt("w:") allows// either "-w 80" or "-w80".  The variable optArg is set to the option// argument, e.g., "80" in either of the previous examples.  Conversion// functions such as Integer.parseInt(), etc., can then be applied to// optArg.//// getopt places in the variable optIndex the index of the next command// line argument to be processed; optIndex is automatically initialized// to 1 before the first call to getopt.//// When all options have been processed (that is, up to the first// non-option argument), getopt returns optEOF (-1).  getopt recognizes the// command line argument "--" (i.e., two dashes) to delimit the end of// the options; getopt returns optEOF and skips "--".  Subsequent,// non-option arguments can be retrieved using the String array passed to// main(), beginning with argument number optIndex.// DIAGNOSTICS://// getopt prints an error message on System.stderr and returns a question// mark ('?') when it encounters an option letter in a command line argument// that is not included in optString.  Setting the variable optErr to// false disables this error message.// NOTES://// The following notes describe GetOpt's behavior in a few interesting// or special cases; these behaviors are consistent with getopt(3)'s// behaviors.// -- A '-' by itself is treated as a non-option argument.// -- If optString is "a:" and the command line arguments are "-a -x",//    then "-x" is treated as the argument associated with the "-a".// -- Duplicate command line options are allowed; it is up to user to//    deal with them as appropriate.// -- A command line option like "-b-" is considered as the two options//    "b" and "-" (so "-" should appear in option string); this differs//    from "-b --".// -- Sun and DEC getopt(3)'s differ w.r.t. how "---" is handled.//    Sun treats "---" (or anything starting with "--") the same as "--"//    DEC treats "---" as two separate "-" options//    (so "-" should appear in option string).//    Java GetOpt follows the DEC convention.// -- An option `letter' can be a letter, number, or most special character.//    Like getopt(3), GetOpt disallows a colon as an option letter.public class GetOpt {   private String[] theArgs = null;   private int argCount = 0;   private String optString = null;   public GetOpt(String[] args, String opts) {      theArgs = args;      argCount = theArgs.length;      optString = opts;   }   // user can toggle this to control printing of error messages   public boolean optErr = false;   public int processArg(String arg, int n) {      int value;      try {         value = Integer.parseInt(arg);      } catch (NumberFormatException e) {         if (optErr)            System.err.println("processArg cannot process " + arg               + " as an integer");         return n;      }      return value;   }   public int tryArg(int k, int n) {      int value;      try {         value = processArg(theArgs[k], n);      } catch (ArrayIndexOutOfBoundsException e) {         if (optErr)            System.err.println("tryArg: no theArgs[" + k + "]");            return n;      }      return value;   }   public long processArg(String arg, long n) {      long value;      try {         value = Long.parseLong(arg);      } catch (NumberFormatException e) {         if (optErr)            System.err.println("processArg cannot process " + arg               + " as a long");         return n;      }      return value;   }   public long tryArg(int k, long n) {      long value;      try {         value = processArg(theArgs[k], n);      } catch (ArrayIndexOutOfBoundsException e) {         if (optErr)            System.err.println("tryArg: no theArgs[" + k + "]");            return n;      }      return value;   }   public double processArg(String arg, double d) {      double value;      try {         value = Double.valueOf(arg).doubleValue();      } catch (NumberFormatException e) {         if (optErr)            System.err.println("processArg cannot process " + arg               + " as a double");         return d;      }      return value;   }   public double tryArg(int k, double d) {      double value;      try {         value = processArg(theArgs[k], d);      } catch (ArrayIndexOutOfBoundsException e) {         if (optErr)            System.err.println("tryArg: no theArgs[" + k + "]");            return d;      }      return value;   }   public float processArg(String arg, float f) {      float value;      try {         value = Float.valueOf(arg).floatValue();      } catch (NumberFormatException e) {         if (optErr)            System.err.println("processArg cannot process " + arg               + " as a float");         return f;      }      return value;   }   public float tryArg(int k, float f) {      float value;      try {         value = processArg(theArgs[k], f);      } catch (ArrayIndexOutOfBoundsException e) {         if (optErr)            System.err.println("tryArg: no theArgs[" + k + "]");            return f;      }      return value;   }   public boolean processArg(String arg, boolean b) {      // `true' in any case mixture is true; anything else is false      return Boolean.valueOf(arg).booleanValue();   }   public boolean tryArg(int k, boolean b) {      boolean value;      try {         value = processArg(theArgs[k], b);      } catch (ArrayIndexOutOfBoundsException e) {         if (optErr)            System.err.println("tryArg: no theArgs[" + k + "]");            return b;      }      return value;   }   public String tryArg(int k, String s) {      String value;      try {         value = theArgs[k];      } catch (ArrayIndexOutOfBoundsException e) {         if (optErr)            System.err.println("tryArg: no theArgs[" + k + "]");            return s;      }      return value;   }   private static void writeError(String msg, char ch) {      System.err.println("GetOpt: " + msg + " -- " + ch);   }   public static final int optEOF = -1;   private int optIndex = 0;   public int optIndexGet() {return optIndex;}   private String optArg = null;   public String optArgGet() {return optArg;}   private int optPosition = 1;   public int getopt() {      optArg = null;      if (theArgs == null || optString == null) return optEOF;      if (optIndex < 0 || optIndex >= argCount) return optEOF;      String thisArg = theArgs[optIndex];      int argLength = thisArg.length();      // handle special cases      if (argLength <= 1 || thisArg.charAt(0) != '-') {         // e.g., "", "a", "abc", or just "-"         return optEOF;      } else if (thisArg.equals("--")) { // end of non-option args         optIndex++;         return optEOF;      }      // get next "letter" from option argument      char ch = thisArg.charAt(optPosition);      // find this option in optString      int pos = optString.indexOf(ch);      if (pos == -1 || ch == ':') {         if (optErr) writeError("illegal option", ch);         ch = '?';      } else { // handle colon, if present         if (pos < optString.length()-1 && optString.charAt(pos+1) == ':') {            if (optPosition != argLength-1) {               // take rest of current arg as optArg               optArg = thisArg.substring(optPosition+1);               optPosition = argLength-1; // force advance to next arg below            } else { // take next arg as optArg               optIndex++;               if (optIndex < argCount                     && (theArgs[optIndex].charAt(0) != '-' ||                     theArgs[optIndex].length() >= 2 &&                     (optString.indexOf(theArgs[optIndex].charAt(1)) == -1                     || theArgs[optIndex].charAt(1) == ':'))) {                  optArg = theArgs[optIndex];               } else {                  if (optErr) writeError("option requires an argument", ch);                  optArg = null;                  ch = ':'; // Linux man page for getopt(3) says : not ?               }            }         }      }      // advance to next option argument,      // which might be in thisArg or next arg      optPosition++;      if (optPosition >= argLength) {         optIndex++;         optPosition = 1;      }      return ch;   } /* public static void main(String[] args) {  // test the class      GetOpt go = new GetOpt(args, "Uab:f:h:w:");      go.optErr = true;      int ch = -1;      // process options in command line arguments      boolean usagePrint = false;                 // set      int aflg = 0;                               // default      boolean bflg = false;                       // values      String filename = "out";                    // of      int width = 80;                             // options      double height = 1;                          // here      while ((ch = go.getopt()) != go.optEOF) {         if      ((char)ch == 'U') usagePrint = true;         else if ((char)ch == 'a') aflg++;         else if ((char)ch == 'b')            bflg = go.processArg(go.optArgGet(), bflg);         else if ((char)ch == 'f') filename = go.optArgGet();         else if ((char)ch == 'h')            height = go.processArg(go.optArgGet(), height);         else if ((char)ch == 'w')            width = go.processArg(go.optArgGet(), width);         else System.exit(1);                     // undefined option      }                                           // getopt() returns '?'      if (usagePrint) {         System.out.println("Usage: -a -b bool -f file -h height -w width");         System.exit(0);      }      System.out.println("These are all the command line arguments " +         "before processing with GetOpt:");      for (int i=0; i<args.length; i++) System.out.print(" " + args[i]);      System.out.println();      System.out.println("-U " + usagePrint);      System.out.println("-a " + aflg);      System.out.println("-b " + bflg);      System.out.println("-f " + filename);      System.out.println("-h " + height);      System.out.println("-w " + width);      // process non-option command line arguments      for (int k = go.optIndexGet(); k < args.length; k++) {         System.out.println("normal argument " + k + " is " + args[k]);      }   }*/}/* ............... Example compile and run(s)D:\>javac GetOpt.javaD:\>java GetOpt -aaa -b true -f theFile -w -80 -h3.33 arg1 arg2These are all the command line arguments before processing with GetOpt: -aaa -b true -f theFile -w -80 -h3.33 arg1 arg2 -U false -a 3 -b true -f theFile -h 3.33 -w -80 normal argument 8 is arg1 normal argument 9 is arg2D:\>java GetOpt -aaa -x -w90GetOpt: illegal option -- xD:\>java GetOpt -af theFile -w -b trueGetOpt: option requires an argument -- w                                            ... end of example run(s)  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区二区三区在线看| 日韩午夜电影在线观看| 欧美日精品一区视频| 日韩女优视频免费观看| 亚洲欧美视频一区| 久久国产精品99精品国产 | 午夜精品视频在线观看| 国产精品影音先锋| 制服丝袜亚洲网站| 亚洲精品日产精品乱码不卡| 国产一区欧美二区| 91精品国产91久久久久久最新毛片| 一区在线播放视频| 国产成人免费高清| 日韩精品中文字幕一区二区三区| 一二三区精品视频| 99精品一区二区三区| 久久欧美一区二区| 久久疯狂做爰流白浆xx| 91精品久久久久久久91蜜桃| 亚洲视频综合在线| 9色porny自拍视频一区二区| 国产日韩在线不卡| 国产精品亚洲视频| 久久久久久久电影| 国产一区二区三区免费播放 | 99久久精品免费精品国产| 久久综合九色欧美综合狠狠 | av综合在线播放| 国产免费成人在线视频| 国产九色sp调教91| 久久影院视频免费| 国产精品99久久久久| 久久久久久久久伊人| 国产一区二区三区四区五区美女 | 国产精品第一页第二页第三页| 国产一区视频网站| 久久精品日韩一区二区三区| 国产制服丝袜一区| 久久综合一区二区| 高清在线不卡av| 亚洲欧洲日产国码二区| 色综合久久久网| 亚洲一区二区综合| 欧美巨大另类极品videosbest| 亚洲第一搞黄网站| 欧美一区二区三区不卡| 精品在线亚洲视频| 国产精品天天看| 色久优优欧美色久优优| 午夜视频在线观看一区二区 | 国产精品久久久久久户外露出 | 亚洲青青青在线视频| 一本色道a无线码一区v| 亚洲va欧美va天堂v国产综合| 欧美精品三级在线观看| 六月丁香综合在线视频| 国产欧美一区二区三区网站| 成人av网在线| 午夜亚洲福利老司机| 久久精品在线免费观看| 91免费视频大全| 奇米综合一区二区三区精品视频| 久久亚洲影视婷婷| 色婷婷综合视频在线观看| 日韩成人一级片| 国产精品丝袜久久久久久app| 色综合视频在线观看| 久久国产欧美日韩精品| 亚洲视频在线一区| 欧美va亚洲va香蕉在线| 99久久综合国产精品| 午夜精品福利视频网站| 中文字幕欧美日韩一区| 欧美女孩性生活视频| 国产精品乡下勾搭老头1| 亚洲一级二级在线| 欧美国产乱子伦| 在线不卡欧美精品一区二区三区| 韩日av一区二区| 亚洲宅男天堂在线观看无病毒 | 777欧美精品| 成人91在线观看| 麻豆视频观看网址久久| 一区二区三区精品在线| 国产欧美一区二区精品忘忧草| 精品视频一区二区不卡| 不卡一区二区三区四区| 久久国内精品视频| 亚洲一二三四久久| 国产女同性恋一区二区| 精品久久人人做人人爽| 在线播放91灌醉迷j高跟美女 | 国产精品影音先锋| 婷婷开心激情综合| 亚洲一区在线观看网站| 国产精品福利影院| 国产亚洲精品久| 欧美成人精品3d动漫h| 欧美日韩国产精品成人| 91麻豆精品在线观看| 大胆欧美人体老妇| 国产一区二区三区在线观看精品| 五月天丁香久久| 亚洲成人7777| 亚洲mv大片欧洲mv大片精品| 亚洲精品中文在线| 亚洲欧美日韩在线不卡| 1024国产精品| 日韩一区日韩二区| 中文字幕日韩欧美一区二区三区| 国产欧美综合在线| 中文字幕巨乱亚洲| 国产精品免费久久| 国产精品久久久久久户外露出 | 精品视频全国免费看| 欧亚洲嫩模精品一区三区| 91色porny蝌蚪| 99精品一区二区三区| 91老师国产黑色丝袜在线| 91性感美女视频| 91视视频在线直接观看在线看网页在线看 | 极品美女销魂一区二区三区| 久久66热偷产精品| 国产在线不卡一卡二卡三卡四卡| 国产精品香蕉一区二区三区| 风流少妇一区二区| 99精品视频中文字幕| 日本福利一区二区| 欧美日韩一二三| 日韩欧美你懂的| 国产欧美一区二区三区网站| 中文字幕国产一区| 一区二区在线观看免费| 午夜电影一区二区| 国产精品中文字幕欧美| 91尤物视频在线观看| 欧美视频一区二区三区在线观看 | 成人午夜电影网站| 在线免费观看日本欧美| 91麻豆精品国产91久久久久| 精品久久久久久久久久久院品网| 国产香蕉久久精品综合网| **欧美大码日韩| 午夜久久久久久久久| 国产精品一区二区91| 91免费版在线| 欧美一区二区三区在线看| 久久精品夜夜夜夜久久| 一区二区三区在线看| 奇米在线7777在线精品| 国产成+人+日韩+欧美+亚洲| 91黄色免费看| 亚洲精品一区二区精华| 亚洲精品视频一区| 99久久99久久精品免费看蜜桃| 欧洲精品在线观看| 国产亚洲午夜高清国产拍精品 | 日本不卡中文字幕| 成人av在线资源| 日韩欧美一区二区久久婷婷| 国产精品女主播av| 乱一区二区av| 欧美视频中文字幕| 国产免费成人在线视频| 美腿丝袜亚洲色图| 91激情五月电影| 亚洲国产精华液网站w| 天天av天天翘天天综合网 | 美国欧美日韩国产在线播放| 99免费精品在线| 久久久久久一级片| 日本最新不卡在线| 在线亚洲一区二区| 国产精品丝袜久久久久久app| 麻豆91精品91久久久的内涵| 91国在线观看| 亚洲欧洲日韩综合一区二区| 国产精品自拍毛片| 欧美大尺度电影在线| 亚洲va韩国va欧美va| 91在线免费看| 久久综合狠狠综合| 蜜桃一区二区三区在线| 欧美日韩国产在线观看| 亚洲免费在线观看| 成人av片在线观看| 国产精品乱码妇女bbbb| 国产精品一二三四五| 26uuu亚洲综合色| 精品一区二区综合| 欧美一区二区三区播放老司机| 亚洲午夜日本在线观看| 色婷婷综合久久久久中文一区二区| 国产精品欧美一区喷水| 懂色一区二区三区免费观看| 久久综合色之久久综合| 国产精品影音先锋| 国产亚洲女人久久久久毛片| 国产成人免费在线视频|