请输入您要查询的英文单词:

 

单词 Sub Main
释义

Sub Main

中文百科

主函式 Entry point

(重定向自Sub Main)
这是一段WinMain的代码。

在一些编程语言里,主函式main function)是程序开始运行的地方。

在C语言或C++编程语言,main的函式原型如下所示:

main的两个环境参数:argcargument count)与argvargument vector),两者个别自程序的指令列给予参数的数量与参数数组的指标地址。argcargv这两个参数的名称,在编程语言的命名规则底下,虽然可以依照用户的喜好自行定义,但是一般在使用上,还是会以现有的名称argcargv来进行程序的编写。其他具有相依平台的格式也可以被C与C++标准所接受;例如,UNIX(非POSIX.1)与Microsoft Visual C++有第三个参数,是用来接收程序的环境变量,利用其他方法访问环境变量,可以使用stdlib.h头文件定义的getenv函式:

英语百科

Entry point 主函式

(重定向自Sub Main)

In computer programming, an entry point is where control is transferred from the operating system to a computer program, at which place the processor enters a program or a code fragment and execution begins. In some operating systems or programming languages, the initial entry is not part of the program but of the runtime library, in which case the runtime library initializes the program and then the runtime library enters the program. In other cases, the program may call the runtime library before doing anything when it is entered for the first time, and, after the runtime library returns, the actual code of the program begins to execute. This marks the transition from load time (and dynamic link time, if present) to run time.

随便看

 

英汉双解词典包含3607232条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
京ICP备09058993号 更新时间:2025/5/23 9:19:22