当前位置:网站首页>Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand
Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand
2022-06-30 15:02:00 【Small black code bit】
The first note : Simple understanding of a small program “ The cabbage you can't get ”.
Catalog
2. First write a program " The cabbage you can't get "
1.C What is language ?
C Language is a general computer programming language , Widely used in the underlying development .
C The goal of language design is to provide a way to make it easy The way to compile 、 Processing low-level memory 、 production Generate a small amount of machine code and a programming language that can run without any running environment support .
Even though C Language provides many low-level processing functions , But it still has good cross platform characteristics , Written in a standard specification C Language programs can be developed on many computer platforms Line compiler , It even includes some embedded processors ( Single chip computer MCU) And supercomputers . The 1980s , In order to avoid the use of C There are differences in language grammar , By the National Bureau of standards C Language system A complete set of American national standard language Law , be called ANSI C, As C The original standard of language . [1] at present 2011 year 12 month 8 Japan , International Organization for Standardization (ISO) and International Electrotechnical Commission (IEC) released C11 The standard is C The third official standard of language , It's also C The latest standard of language , The standard better supports Chinese function names and Chinese characters identifier , To a certain extent, it has realized Han Word programming .
C Language is a process oriented computer programming language , And C++,Java Object oriented programming languages such as .
summary : After long-term evolution , Modern programming is more convenient , Efficient , A wider range of languages .
2. First write a program " The cabbage you can't get "
First install one visual studio 2019/2022 This thing is software ,“ On the number ” use !

2.1 Copy a program " The cabbage you can't get "
#include<stdio.h>
int main()
{
printf(" The cabbage you can't get
");
return 0;
}2.2 Create a process
First step ; Create a project



The second step ; Copy the code in , Pay attention to the punctuation of English input method .

The third step Run code ( Shortcut key Ctrl+F5 )

then , You get a small black window , It printed out “ The cabbage you can't get ,” It means that the operation is successful .

summary : I wonder what the letters are ? What is this ? Comfort yourself , Normal , Copy slowly !
3.code The meaning of ? A jumble of letters and numbers ?
#include<stdio.h>
int main()
{
printf(" The cabbage you can't get
");
return 0;
}#include<stdio.h> This is called a reference header file
include It's called a file containing command , The meaning is to put angle brackets "" Or quotation marks <> The files specified in are included in this program , Become part of this program . Included files are usually provided by the system , Its extension is .h
- stdio.h Is refers to “standard input&output" This means that the standard I / O header file ! So when using standard I / O functions , You need to call this header file ! That is to say printf standard output , In the future, I will see the cry scanf The standard input .
- int This thing is called “ integer constants ” ---------------> Click to learn data type , Constant , Variable
- main It's called the main function
- return 0 The explanation is not clear at present , main function You have to return one anyway
- /n This is called “ Line break ” Belongs to escape character ----------------> Click to learn Escape character + notes + character string
- printf Is the print function ( His function is to make the above “ The cabbage you can't get ” Printed on a black window )
summary : To master strange letters and computer language “ Data symbols ”, Learn to imitate first !!!
边栏推荐
- The difference between queue and stack
- 1018 public bike Management (30 points)
- 机械工程师面试的几个问题,你能答上来几个?
- Matlab two-dimensional array example (extract data)
- Matlab finds prime numbers within 100
- L - Jungle roads (minimum spanning tree)
- The difference between settimeout() and setinterval()
- 1105 spiral matrix (25 points)
- 2021-08-07 native and package types
- Greedy interval problem (5)
猜你喜欢

Clear the route cache in Vue

2021-05-12

J - Borg maze (minimum spanning tree +bfs)

PS tip: the video frame to Layer command cannot be completed because dynamiclink is not available

August 24, 2021 deque queue and stack

CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014

Repair of incorrect deletion of win10 boot entry

How does hbuilder display in columns?

CCF elimination games (Full Score code + problem solving ideas + skill summary) February 2, 2015

LIS error: this configuration section cannot be used in this path
随机推荐
Knowledge learned from the water resources institute project
Sum of squares of two pointers
Determine the number of digits of an integer in MATLAB (one line of code)
How to realize selective screen recording for EV screen recording
Programming exercises: special numbers (problem solving ideas + code implementation)
1137: encrypted medical record
数控加工中心打刀缸工作原理及故障处理
2021-07-15Caused by: org. quartz. ObjectAlreadyExistsException: Unable to store Job : ‘DEFAULT. TASK_ 1‘
CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014
1132: stone scissors cloth
Working principle and fault treatment of cutting cylinder in CNC machining center
1027 colors in Mars (20 points)
val_ Loss decreases first and then increases or does not decrease but only increases
1015 reversible primes (20 points)
1149 dangerous goods packaging (25 points)
Detailed explanation of settimeout() and setinterval()
2021-08-07 native and package types
Matlab judges the number of same purchases
Svn password forgetting solution
Non decreasing column