C language programming C Compiler

Source: Internet
Author: User

First, let's give an example.

If a Chinese who does not understand English communicates with a British who does not understand Chinese, you can use translation tools (or software, such as Kingsoft, Kingsoft fast translation, and Antarctic star ), you can also use English translation (people here) for English-Chinese translation.

When there are syntactic or pen errors in English or Chinese, translation tools often cannot translate accurately, because they are not intelligent like humans, and cannot automatically identify and correct errors. But English translation (people) can do this.

The following is a translation of a Chinese text using Google translation tools:

"Enter a search phrase in your language to easily search web pages in other languages. We will translate the results for your convenience ".

:

Translated into English:

"To your language to enter a search phrase and easily search in other versions ages page. For the convenience of your reading, we will translate the results ."

The "to your language to enter a search phrase and easily search in other ages page." translation is inaccurate.

Another example:

"Even when there is no way to go, do not give up the opportunity, because the sun is new every day. the people shoshould not give up the opportunity for students, because the sun is a new day."

 

Similarly, when we deal with computers, how can computers (machines) understand our natural language?

Computers can only recognize and execute binary commands. We can create a new set of languages (such as C language, Pascal, and basic). This language conforms to human thinking habits and is easy to learn, understanding and using. Using translation tools to writeCodeTranslated into binary machine language. (Hello. cpp ):

The edited file (helloc.exe) (Note: the graph is displayed in hexadecimal format for ease of viewing and editing)

 

Translating C language code into a computer language relies on compiler. Therefore, the compiler cannot accurately translate any syntax or writing errors into a computer language. Although the compiler checks various errors before compilation, some errors cannot be checked out, for example, errors that can only occur during runtime,ProgramAlgorithmErrors, written mistakes, etc.

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.