C# main函数的返回值 - 译
https://docs.microsoft.com/zh-cn/dotnet/csharp/programming-guide/main-and-command-args/main-return-values
return values?
返回值
The Main method can return void,
Main方法可以返回void,
It can also return an int,
也可以返回int,
return value from Main
Main 的返回值
slightly
d:稍,稍微
slightly simpler code
稍微簡單的代碼
invoke the executable file
調用可執行文件
programs or scripts
程序或腳本
to communicate status information to other programs or scripts
傳遞狀態信息給其它程序或腳本
is treated as
視為
the exit code for the process
進程的退出代碼
the exit code will be implicitly 0
退出代碼隱式為0
is stored in an environment variable
存儲在環境變量中
batch file
批處理文件
build the application
構建應用程序
to run the application and display the result
運行應用程序并顯示結果
typing test.ps1 at the PowerShell prompt
在 PowerShell 提示符下鍵入 test.ps1
text file
文本文件
the code returns zero
代碼返回0
report success
報告成功
return a non-zero value?
返回非零值
recompile the program
重新編譯程序
subsequent execution of the PowerShell script will report failure
PowerShell 腳本的后續執行將報告失敗
subsequent to
p:在_之后,接著,之后
總結
以上是生活随笔為你收集整理的C# main函数的返回值 - 译的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C#协变和逆变 - 译
- 下一篇: python标准库的基本使用