亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

c#函數中 static void Main(String[ ] args )括號中的參數作用?

c#函數中 static void Main(String[ ] args )括號中的參數作用?

C#
呼如林 2018-12-03 10:06:35
c#函數中 static void Main(String[ ] args )括號中的參數作用?
查看完整描述

1 回答

?
暮色呼如

TA貢獻1853條經驗 獲得超9個贊

額 這個就是接受參數的意思。我們知道,在程序里面調用外部exe文件時,后面可以加參數。那么這個參數的格式就取決于你這個括號里面參數的格式。比如有一個 text.exe,程序入口這樣寫:static void Main(String args)那么調用這個程序就可以 Process proc = new Process(); proc.StartInfo.FileName = @"text";proc.StartInfo.Arguments = "參數“;字符串static void Main(String[] args)那么調用這個程序就可以 Process proc = new Process(); proc.StartInfo.FileName = @"text";proc.StartInfo.Arguments = "{”1“,”2“}“;數組static void Main(int args)那么調用這個程序就可以 Process proc = new Process(); proc.StartInfo.FileName = @"text";proc.StartInfo.Arguments = 1;整形

查看完整回答
反對 回復 2018-12-16
  • 1 回答
  • 0 關注
  • 704 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號