当前位置:网站首页>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 !!!
边栏推荐
- Sum of CCF digits (full mark code + problem solving idea) 201512-1
- Solve the problem that codeblocks20.03 on win11 cannot run for the first time
- J - Borg maze (minimum spanning tree +bfs)
- Pseudocode writing specification
- Determine the number of digits of an integer in MATLAB (one line of code)
- 1136: password translation
- K - rochambau (joint search, enumeration)
- Working principle and fault treatment of cutting cylinder in CNC machining center
- JS to realize simple lottery function
- Sorting by character frequency
猜你喜欢

Detailed explanation of settimeout() and setinterval()

PS dynamic drawing

How to realize selective screen recording for EV screen recording

CCF call auction (full mark code + problem solving ideas + skill summary) 201412 - 3

CCF adjacent number pairs (Full Score code + problem solving ideas + skill summary) 201409-1

2021-07-14 mybaitsplus

2021-05-12
![[extensive reading of papers] multimodal attribute extraction](/img/ec/546c107ac0d31deded7ca94fdf0e2d.jpg)
[extensive reading of papers] multimodal attribute extraction

CCF window (Full Score code + problem solving idea) March 2, 2014

Matlab construction operation example
随机推荐
[extensive reading of papers] multimodal attribute extraction
CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014
How does hbuilder display in columns?
1058 a+b in Hogwarts (20 points)
Matlab two-dimensional array example (extract data)
Lost connection to the flow server (0 retries remaining): |Out of retries, exiting! Error reporting solution (flow)
[matlab] 3D drawing summary
1133: output family and friends string
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
2021-05-12
左旋梯形螺纹的编程
1150 traveling salesman problem (25 points)
1132: stone scissors cloth
Forward declaration of classes
1131: genetic correlation
Greedy two-dimensional array sorting
Sum of squares of two pointers
2021-08-05 leetcode notes
Win10 backup backup shows that creating a shared protection point on the shadow failed
A. Theatre Square(codefore)