当前位置:网站首页>Understand what is a programming language in a popular way
Understand what is a programming language in a popular way
2022-07-06 16:04:00 【Programming fish 66】
Before learning programming languages , The first thing to know is this “ programing language ” The concept .
When I was very young , My parents taught us to talk , It also teaches us how to understand the meaning of other people's speech . After a long period of edification and self-study , We learned to speak unconsciously , At the same time, I can understand the meaning of other children , We began to ask our parents for pocket money to buy snacks and toys 、 I was bullied and told my parents ……
We are speaking Chinese , yes “ Chinese language ”, Just tell our parents what we need , Parents will be satisfied , We use it “ Chinese language ” To control parents , Let parents do what we like .
“ Chinese language ” There is a fixed format , Each Chinese character represents a different meaning , We must express... Correctly , Parents can understand what we mean . For example, let parents give us 10 Yuan for pocket money , We will say “ Mom gave me 10 Bucks! , I want to buy a car ”. If we say “10 Give me the car allowance, mom ”, perhaps “ Mom gave me 10 RMB , I would like to buy it F-22”, Mom would be surprised , I can't understand what we mean , Or understanding mistakes , Blame us .
We use the “ Language ” To control others , Let others do things for us . There are many languages , Including Chinese 、 English 、 French 、 Korean, etc , Although their vocabulary and format are different , But it can do the same thing , We can choose any language to control others .
Again , We can also pass ” Language “ To control the computer , Let computers do things for us , Such a language is called programming language (Programming Language).
Programming languages also have fixed formats and vocabulary , We have to learn to use , To control the computer .
There are many programming languages , Commonly used C Language 、C++、Java、C#、Python、PHP、JavaScript、Go Language 、Objective-C、Swift、 Assembly language, etc , Every language has its own specialty , for example :
programing language | Main uses |
---|---|
C/C++ | C++ Is in C Developed on the basis of language ,C++ Contains C All the content of the language ,C Language is C++ Part of , They are often used in combination , So collectively referred to as C/C++.C/C++ It is mainly used for PC software development 、Linux Development 、 Game development 、 MCU and embedded system . |
Java | Java It's a universal language , Can be used for website background development 、Android Development 、PC software development , In recent years, he has been involved in the field of big data ( Thanks to Hadoop The popularity of frames ). |
C# | C# It was developed by Microsoft to fight against Java A language of , Implementation mechanism and Java similar , however C# Obviously failed , At present, it is mainly used for Windows Platform software development , And a small number of website background development . |
Python | Python It's also a universal language , Mainly used for system operation and maintenance 、 Website background development 、 Data analysis 、 Artificial intelligence 、 Cloud computing and other fields , The momentum has been strong in recent years , It's growing very fast . |
PHP | PHP It's a special language , Mainly used to develop website background program . |
JavaScript | JavaScript At first, it can only be used for website front-end development , And it's the only language for front-end development , There is no substitute . In recent years, due to Node.js The popularity of ,JavaScript In the background development of the website also occupies a place , And it's growing fast . |
Go Language | Go Language is 2009 Year by year Google A programming language released , Grow very fast , There are a lot of applications at home and abroad .Go Language is mainly used for server-side programming , Yes C/C++、Java It's a big challenge . |
Objective-C Swift | Objective-C and Swift Can only be used for the development of Apple products , Include Mac、MacBook、iPhone、iPad、iWatch etc. . |
assembly language | Assembly language is a language in the early stage of computer development , It's very efficient , But the development efficiency is very low , So assembly language is not used in common application development , Assembly language is only considered in the key modules which require high efficiency and real-time , For example, the operating system kernel 、 drive 、 Instruments and Apparatuses 、 Industrial control, etc . |
Different programming languages can be compared to different languages , To express the same meaning , Different statements may be used . for example , expression “ Hello world ” It means :
- chinese : Hello world ;
- English :Hello World
- French :Bonjour tout le monde
In programming languages , The same operation may use different statements . for example , Show... On the screen “C Chinese language network ”:
- C Language :puts("C Chinese language network ");
- PHP:echo "C Chinese language network ";
- Java:System.out.println("C Chinese language network ");
Programming languages are similar to human languages , It's made up of intuitive words , It's easy for us to understand what it means , For example, in C In language , We use puts
This word allows the computer to display text on the screen ;puts yes output string( Output string ) Abbreviation .
Use puts Show... On the screen “C Chinese language network ”:
puts("C Chinese language network ");
We put the content to be displayed in ("
and ")
Between , And at the end of the day ;
. You have to write like this , This is a fixed format .
summary : A programming language is a series of instructions used to control a computer (Instruction), It has a fixed format and vocabulary ( Different programming languages have different formats and vocabulary ), Must abide by the , Otherwise it will go wrong , Can't achieve our goal .
C Language (C Language) It's a programming language , Study C Language , Mainly to learn its format and vocabulary . Here's a C A complete example of language , It will let the computer display ”C Chinese language network “.
This example mainly demonstrates C Some inherent forms and vocabulary of language , Readers who don't understand don't have to dig deep , I don't have to ask why , We will explain it to you step by step later .
#include <stdio.h>
int main(){
puts("C Chinese language network ");
return 0;
}
These words have specific meanings 、 sentence , Organized in a specific format , It's the source code (Source Code), Also known as source code or code (Code).
that ,C Language definitely defines every word in the source code 、 The meaning of the sentence , It also defines how they should be organized , This is grammar (Syntax). It's with what we say when we learn English “ grammar ” similar , They all stipulate how to organize specific words and sentences into intelligible languages .
The process of writing source code is called programming (Program). People who work in programming are called programmers (Programmer). Programmers are also very humorous , I like to laugh at myself , I often say that my work is hard , Low status , Like a farmer , So call yourself ” Code the agriculture “, The farmer who wrote the code . Some people call it ” Program the ape “.
C Language /C++ Programming learning base group :jq.qq.com/?_wv=1027&k=iRhFqGAf
边栏推荐
- Analyse du format protobuf du rideau en temps réel et du rideau historique de la station B
- 信息安全-威胁检测-flink广播流BroadcastState双流合并应用在过滤安全日志
- Common configuration files of SSM framework
- Penetration test (8) -- official document of burp Suite Pro
- 【练习-2】(Uva 712) S-Trees (S树)
- 【高老师软件需求分析】20级云班课习题答案合集
- Shell脚本编程
- Research Report of cylindrical grinder industry - market status analysis and development prospect forecast
- 【练习-3】(Uva 442)Matrix Chain Multiplication(矩阵链乘)
- Gartner: five suggestions on best practices for zero trust network access
猜你喜欢
7-1 understand everything (20 points)
b站 实时弹幕和历史弹幕 Protobuf 格式解析
Analyse du format protobuf du rideau en temps réel et du rideau historique de la station B
信息安全-安全编排自动化与响应 (SOAR) 技术解析
洛谷P1102 A-B数对(二分,map,双指针)
C语言数组的概念
B - Code Party (girls' competition)
Frida hook so layer, protobuf data analysis
信息安全-威胁检测-NAT日志接入威胁检测平台详细设计
Penetration test (3) -- Metasploit framework (MSF)
随机推荐
Opencv learning log 33 Gaussian mean filtering
0-1背包問題(一)
Determine the Photo Position
数据在内存中的存储&载入内存,让程序运行起来
信息安全-威胁检测-flink广播流BroadcastState双流合并应用在过滤安全日志
Shell脚本编程
渗透测试 ( 7 ) --- 漏洞扫描工具 Nessus
Opencv learning log 15 count the number of solder joints and output
基于web的照片数码冲印网站
Research Report on market supply and demand and strategy of China's land incineration plant industry
China chart recorder market trend report, technology dynamic innovation and market forecast
frida hook so层、protobuf 数据解析
[teacher Gao UML software modeling foundation] collection of exercises and answers for level 20 cloud class
【练习4-1】Cake Distribution(分配蛋糕)
Penetration test (4) -- detailed explanation of meterpreter command
Truck History
【练习-10】 Unread Messages(未读消息)
[exercise-8] (UVA 246) 10-20-30== simulation
【高老师软件需求分析】20级云班课习题答案合集
Interval sum ----- discretization