C Language Primer Reference (i)

Source: Internet
Author: User

First, what is programming, what is programming language?

        programming, in layman's terms, is to write programs that are designed to tell computers to help us solve problems that are not complete (such as the calculation of large amounts of data in scientific research), correctly and efficiently. Computer is like a force of infinite people, but it is very stupid, do not know how to use their own power, which requires others to tell it how to force with how much power to do, so if the "tell the computer how to force the process" understood as programming is not too. Computer's common names are "computers", and we Are "human brain", the language of employing the direct communication with the computer must be communication is not communicated. So the question is, how do we tell the computer what we want to do? Here is the need to talk about programming languages, I usually communicate with the language of natural language, natural language is the natural evolution of the language, namely, Chinese, English, Spanish and a series of languages. Human beings communicate with each other in natural language, is it a natural language to communicate with the computer? Obviously not (it is not to this level anyway). Thus the computer language is the programming language. People communicate with computers in computer language (programming language), and we want it to help us to tell it how to do it in computer language. That is, programming, writing programs. What's the procedure? (The program we can temporarily understand as software, relative to the more appropriate argument is that "software is a collection of programs" in the later learning will naturally talk about) The program is essentially a collection of instructions and data. This computer said strong also powerful, said not bad also not bad, its ability actually only three kind: input, operation, output. Oh, no! Computers will be a lot of Ah! Deal with text, processing forms, surfing the Internet and so many very powerful skills! Unfortunately, the computer is not as strong as you see, it is really only input, operation, output, which is essentially input, operation, output. Before said the computer is very stupid, although it will input, operation, output but it does not know how to input, how much, how to operate, how to output, this time we need to use instructions to tell it how to input, operation, output. The data is divided into two kinds, input data and output data, input data is let us input computer, let computer processing of data, output data is the computer executes the instruction after the data (in some cases, feedback visual and auditory effects, such as frame warning, sound hint) here for example, a simple math problem. 1+1=2. We enter "+ +" (the input data inside the quotation marks), the computer executes the instruction (operation) thus obtains 1+1= "2", this "2" is the output data.

Language is grammar, semantics, computer language is no exception. We learn programming is to learn the grammar, semantics of computer language. The grammar of computer language is not far from the grammar we learn English, it is the stipulation of how to use vocabulary (function). Semantics is the interpretation of the meaning of vocabulary (function), different programming languages have different syntax and semantics, we should strictly follow the syntax of the language when programming, otherwise it will be wrong, because the computer will only follow your instructions to do, you tell it wrong, it will follow the wrong to do.

If there is an error in the text, please do not reprint without the permission of Bo (not to be continued ...). )

C Language Primer Reference (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.