没有main() [英] without main()
问题描述
我是这个小组的新成员。我从beginig开始 - main()。
任何人都可以告诉我如何使用main()在没有
的情况下用C编写程序?即在查看源代码时它不包含主要的
关键字。
hi ,
i m a new member to this group . i start from the beginig - main().
Can any one give me an idea for how to write a program in C without
using main() ? ie while looking source code it wont contain main
keyword.
推荐答案
mariz写道:
mariz wrote:
hi,
ima此组的新成员。我从beginig开始 - main()。
任何人都可以告诉我如何使用main()在没有
的情况下用C编写程序?即在查看源代码时,它不包含主要的
关键字。
hi ,
i m a new member to this group . i start from the beginig - main().
Can any one give me an idea for how to write a program in C without
using main() ? ie while looking source code it wont contain main
keyword.
main是函数的名称,而不是关键字。该函数是进入C程序的
入口点。
你可能看到没有main的C应用程序的唯一地方是
嵌入式应用程序或设备驱动程序。前者可能会定义他们自己的入口点,后者往往被加载到一个运行的
程序(操作系统)。
-
Ian Collins。
main is the name of a function, not a keyword. That function is the
entry point into a C program.
The only places you are likely to see C application without main are
either embedded applications or device drivers. The former may define
their own entry point, the latter tend to be loaded into a running
program (an operating system).
--
Ian Collins.
4月15日,12:44 * pm,Ian Collins< ian-n .. 。@ hotmail.comwrote:
On Apr 15, 12:44*pm, Ian Collins <ian-n...@hotmail.comwrote:
mariz写道:
mariz wrote:
hi,
* ima这个小组的新成员。我从beginig开始 - main()。
*任何人都可以让我知道如何使用main()在没有
的情况下用C编写程序?即在查看源代码时,它不包含主要的
关键字。
hi ,
*i m a new member to this group . i start from the beginig - main().
*Can any one give me an idea for how to write a program in C without
using main() ? ie while looking source code it wont contain main
keyword.
main是函数的名称,而不是关键字。 *该功能是进入C程序的
入口点。
您可能会看到没有主程序的C应用程序的唯一地方是
嵌入式应用程序或设备驱动程序。 *前者可以定义
他们自己的入口点,后者往往被加载到一个运行的
程序(操作系统)。
-
Ian Collins。
main is the name of a function, not a keyword. *That function is the
entry point into a C program.
The only places you are likely to see C application without main are
either embedded applications or device drivers. *The former may define
their own entry point, the latter tend to be loaded into a running
program (an operating system).
--
Ian Collins.
雅我同意你的观点,但我想说的是入口点
的c(即主要)必须存在于.obj或中间文件
编译后的
,没有它就不会运行。但是,为什么不能在没有主要内容的情况下看到C中的源代码时,我们能否使用b $ b b?即在我们的来源
代码(.c文件)
Ya i agree ur point but what i am trying to tell is the entry point
of c ( i.e main ) must be present in the .obj or intermediate files
after compilation, without this it wont run. But, why not can we make
a magic while seeing a source code in C without main? ie in our source
code only (.c file)
mariz写道:
mariz wrote:
4月15日下午12:44,Ian Collins< ian-n ... @ hotmail.comwrote:
On Apr 15, 12:44 pm, Ian Collins <ian-n...@hotmail.comwrote:
> mariz写道:
>mariz wrote:
>> hi,
ima这个组的新成员。我从beginig开始 - main()。
任何人都可以给我一个关于如何用C编写程序而不用
使用main()的想法吗?即在查看源代码时,它不包含主要的关键字。
>>hi ,
i m a new member to this group . i start from the beginig - main().
Can any one give me an idea for how to write a program in C without
using main() ? ie while looking source code it wont contain main
keyword.
main是函数的名称,而不是关键字。该功能是进入C程序的入口点。
您可能会看到没有main的C应用程序的唯一地方是嵌入式应用程序或设备驱动程序。前者可能会定义自己的入口点,后者往往会加载到一个正在运行的程序(操作系统)中。
main is the name of a function, not a keyword. That function is the
entry point into a C program.
The only places you are likely to see C application without main are
either embedded applications or device drivers. The former may define
their own entry point, the latter tend to be loaded into a running
program (an operating system).
*请*不要引用签名!
*Please* don''t quote signatures!
>
雅我同意你的观点,但我想说的是入口点
c(即main)必须出现在.obj或中间文件中
编译后,如果没有它就不会运行。但是,为什么不能在没有主要内容的情况下看到C中的源代码时,我们能否使用b $ b b?即在我们的源代码中
仅代码(.c文件)
>
Ya i agree ur point but what i am trying to tell is the entry point
of c ( i.e main ) must be present in the .obj or intermediate files
after compilation, without this it wont run. But, why not can we make
a magic while seeing a source code in C without main? ie in our source
code only (.c file)
main()必须出现在最终的可执行文件中。一个典型的应用程序
有很多源文件,只有一个包含main()函数。
-
Ian Collins。
main() must be present in the final executable. A typical application
has many source files, only one contains the main() function.
--
Ian Collins.
这篇关于没有main()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!