In program, C just is a language, this language is really like the language in our society used to communicate with other gays, so C language 's purposes are used to communicate with ur PC or embedded device .Now just suppose you want ur computer to show u the local time ,what should u do? what commands u sent to ur PC?
There are so many languages in ur society, all most every language has unique word, then sentences ,then article. Just as the above question, in our society , u ask a man the time."Excuse me, what's the time?", the other gay may see his watch or phone then told u "12:35" , then u said "Thank you!". Let's the normal process of communication.In computer or embedded world are the same.
Now let start code in C. Firstly, let us code the simplest program as below.
main()
{
}
What 's this program used for? Actually ,It did nothing, just enter the program then go out. main() is a function ,every C program must have one main() function.The program execution begins at the opening brace "{" and ends at the closing braces "}".
Time limited , next article let us code a more complex program based on this simplest program.
All programs are executed through A OPEN SOURCE IDE NAMED Code::Blocks u can download from http://www.codeblocks.org/ and I used vision is 12.11.
本文介绍了C语言的基础概念,并通过编写第一个简单的C程序来帮助初学者理解程序的基本结构。文章详细解释了main()函数的作用及其语法结构。

被折叠的 条评论
为什么被折叠?



