当前位置:网站首页>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 !!!
边栏推荐
- CCF drawing (full mark code + problem solving ideas + skill summary) February 2, 2014
- The difference between queue and stack
- K - or unblocked project (minimum spanning tree)
- L - Jungle roads (minimum spanning tree)
- 分布式--OpenResty+lua+Redis
- G - navigation nightare
- JS time conversion standard format, timestamp conversion standard format
- Why do high precision CNC machining centers have errors? You should pay attention to these four reasons!
- 2021-08-07 native and package types
- [extensive reading of papers] a delicious recipe analysis framework for exploring multi modal recipes with variable attributes
猜你喜欢

Clear the route cache in Vue

Repair of incorrect deletion of win10 boot entry

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

Determine the number of digits of an integer in MATLAB (one line of code)

val_ Loss decreases first and then increases or does not decrease but only increases

2021-07-14 mybaitsplus

Solve the problem that codeblocks20.03 on win11 cannot run for the first time

2021-05-12

Lihongyi machine learning 2020 homework summary

Shift operator (detailed)
随机推荐
1058 a+b in Hogwarts (20 points)
One dimensional and two dimensional array addresses
Knowledge learned from the water resources institute project
PS dynamic drawing
Matlab finds a prime number that is greater than a given integer and follows this integer
CCF sequence segmentation (Full Score code + problem solving idea) 201509 -1
1131: genetic correlation
1134: Legal C identifier query
1151 LCA in a binary tree (30 points)
K high frequency elements before sorting
1062 talent and virtue (25 points)
Forward declaration of classes
Pseudocode writing specification
K - rochambau (joint search, enumeration)
CCF command line options (Full Score code + problem solving ideas + skill summary) March 3, 2014
PS tip: the video frame to Layer command cannot be completed because dynamiclink is not available
CCF window (Full Score code + problem solving idea) March 2, 2014
分布式--OpenResty+lua+Redis
A. Theatre Square(codefore)
N - Is There A Second Way Left? (minimum spanning tree, Kruskal)