当前位置:网站首页>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 !!!
边栏推荐
- 1137: encrypted medical record
- N - Is There A Second Way Left? (minimum spanning tree, Kruskal)
- 数控加工中心打刀缸工作原理及故障处理
- Maximum area of islands searched
- Text matching - [naacl 2021] augsbert
- 浅析卧式加工中心上不规则台阶孔存在问题
- 立式加工中心的数控加工对刀具使用基本要求
- 1031 Hello world for u (20 points)
- 1025 pat ranking (25 points)
- 2021-07-15Caused by: org. quartz. ObjectAlreadyExistsException: Unable to store Job : ‘DEFAULT. TASK_ 1‘
猜你喜欢

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

Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)

Knowledge learned from the water resources institute project

J - Borg maze (minimum spanning tree +bfs)

PS dynamic drawing

CCF numerical sorting (Full Score code + problem solving ideas + skill summary) 201503-2
![[extensive reading of papers] multimodal attribute extraction](/img/ec/546c107ac0d31deded7ca94fdf0e2d.jpg)
[extensive reading of papers] multimodal attribute extraction

Lihongyi machine learning 2020 homework summary

Computer screenshot how to cut the mouse in

CCF image rotation (Full Score code + problem solving idea) 201503-01
随机推荐
Double pointer palindrome string
@PathVariable
2021-08-07 native and package types
Programming of left-hand trapezoidal thread
Lihongyi machine learning 2020 homework summary
ES6 notes
Text matching - [naacl 2022] GPL
Lost connection to the flow server (0 retries remaining): |Out of retries, exiting! Error reporting solution (flow)
August 24, 2021 deque queue and stack
JS to realize simple lottery function
Matlab judge palindrome number (only numbers)
Implement a long-click list pop-up box on apiccloud
[extensive reading of papers] analyzing connections between user attributes, images, and text
Judgment of deep learning experiment results
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
Summary of C language interview questions
G - building a space station
Sum of squares of two pointers
Examples of bubble sorting and matrix element screening in MATLAB
CCF call auction (full mark code + problem solving ideas + skill summary) 201412 - 3