Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is programming language?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Before learning programming language, the first thing to do is to clarify the concept of "programming language".

When we were very young, our parents taught us how to speak words and how to understand the meaning of other people's speech. After a long period of cultivation and self-study, we unexpectedly learned the wording before we knew it, and at the same time we could understand the meaning of other friends' words. we began to ask our parents for pocket money to buy snacks and toys, and were bullied to pour it out to our parents.

We speak Chinese and "Chinese language". As long as we tell our parents what we need, our parents will be satisfied. We use "Chinese language" to master our parents and let them do the work we love.

"Chinese language" has a fixed pattern, and each Chinese character represents different meanings. We must express them accurately so that our parents can understand what we mean. For example, if our parents give us 10 yuan pocket money, we will say, "Mom, give me 10 yuan. I want to buy a car." If we say, "Mom, give me 10 yuan for my car pocket money", or "Mom gives me 1 billion RMB and I want to buy Fmuri 22", my mother will think it strange, can't understand us, or understand the fault and criticize us.

We master others and let them do things for us through "words" with fixed patterns and fixed words. There are many kinds of language, including Chinese, English, French, Korean and so on. Although their vocabulary and patterns are different, we can achieve different goals. We can choose to master others with one kind of language.

Similarly, we can also master the computer through "words" and let the computer do things for us. Such words are called Programming Language.

Programming language also has a fixed pattern and vocabulary, we must go through further study to use, in order to master the computer.

There are many kinds of programming languages, such as C language, C++, Java, C #, PHP, JavaScript and so on. Each language has its own advantages, such as:

C language and C++ are mainly used for PC software development, bottom development, single-chip microcomputer and embedded bits and pieces.

Java and C # can be used not only to develop software, but also to open up website daemons.

PHP is mainly used to open up website daemons.

JavaScript plays a secondary role as the front-end task of the website (now some companies also use Node.js to open the website background).

Different programming languages can be compared to foreign languages, and different sentences can be used in order to express the same meaning. For example, to express the meaning of "Hello to the world":

Chinese: Hello to the world.

English: Hello World

French: Bonjour tout le monde

In programming language, different operations can also use different sentences. For example, "C language Chinese Network" is displayed on the screen:

C language: puts (C language Chinese website)

PHP:echo "C language Chinese Network"

Java:System.out.println (C language Chinese Network)

Programming language is similar to human language and is made up of straightforward words, and we can easily understand its meaning. For example, in C language, we use the word puts to make the computer display text on the screen; puts is the abbreviation of output string (input string).

Use puts to display "C language Chinese Network" on the screen:

Puts (C language Chinese Network)

We put the content to be displayed between ("and"), and have it at the beginning. You have to write like this, it's a fixed pattern.

Conclusion: programming language is a series of instructions (Instruction) used to master the computer, it has a fixed pattern and vocabulary (different programming language pattern and vocabulary are different), we must abide by it, otherwise we will stumble and fail to achieve our goal.

C language (C Language) is a kind of programming language. To learn C language, the main thing is to learn its pattern and vocabulary. The following is a good example of C language, which causes the computer to display "C language Chinese Network" on the screen.

This example mainly demonstrates some inherent patterns and vocabulary of C language. Readers who do not understand do not need to delve into it or ask why. We will gradually explain it to everyone later.

# include int main () {puts (C language Chinese website); return 0;}

These words and sentences with specific meanings are organized together according to a specific pattern to form the source code (Source Code), also known as source code or code (Code).

Then, C language must rule the meaning of every word and sentence in the source code, as well as how they should be organized together, which is Syntax. It is similar to the "grammar" we say when we learn English. It both rules how to organize specific words and sentences into understandable words.

The process of writing source code is called Program. People engaged in programming tasks are called programmers (Programmer). Programmers are also funny and like to laugh at themselves, often saying that their tasks are hard and low, like farmers, so they call themselves "programmers", that is, farmers who write code. Some people call themselves "programmers".

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report