返回调用程序的命令的命令行参数的数目。 类 查询函数 结果类型和属性 缺省整数标量 结果值 结果值是命令参数的数目,不计入命令名。 如果没有命令参数,那么结果值为 0。 示例 integer cmd_count cmd_count = COMMAND_ARGUMENT_COUNT() print*, cmd_count end ...
Returns the number of command line arguments for the command that invoked the program. Class Inquiry function Result type and attributes Default integer scalar Result value The result value is the number of command arguments, not counting the command name. If there are no command arguments, the r...
類別 查詢函數 結果類型和屬性 預設整數純量 結果值 結果值是指令引數數目,不計算指令名稱。 如果沒有指令引數,則結果值為 0。 範例 integer cmd_count cmd_count = COMMAND_ARGUMENT_COUNT() print*, cmd_count end 下列是上述程式所產生的範例輸出: $ a.out 0 $ a.out aa 1 $ a.out aa bb 2上層...
Returns the number of command line arguments for the command that invoked the program. Class Inquiry function Result type and attributes Default integer scalar Result value The result value is the number of command arguments, not counting the command name. If there are no command arguments, the r...
Returns the number of command line arguments for the command that invoked the program. Class Inquiry function Result type and attributes Default integer scalar Result value The result value is the number of command arguments, not counting the command name. If there are no command arguments, the ...
コマンド引数がない場合、結果の値は 0 です。 例 integer cmd_count cmd_count = COMMAND_ARGUMENT_COUNT() print*, cmd_count end 上記のプログラムで生成される出力例は次のとおりです。 $ a.out 0 $ a.out aa 1 $ a.out aa bb 2...