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
調(diào)用可執(zhí)行文件
programs or scripts
程序或腳本
to communicate status information to other programs or scripts
傳遞狀態(tài)信息給其它程序或腳本
is treated as
視為
the exit code for the process
進程的退出代碼
the exit code will be implicitly 0
退出代碼隱式為0
is stored in an environment variable
存儲在環(huán)境變量中
batch file
批處理文件
build the application
構(gòu)建應(yīng)用程序
to run the application and display the result
運行應(yīng)用程序并顯示結(jié)果
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 腳本的后續(xù)執(zhí)行將報告失敗
subsequent to
p:在_之后,接著,之后
總結(jié)
以上是生活随笔為你收集整理的C# main函数的返回值 - 译的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C#协变和逆变 - 译
- 下一篇: python标准库的基本使用