当前位置:网站首页>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 call auction (full mark code + problem solving ideas + skill summary) 201412 - 3
- CCF command line options (Full Score code + problem solving ideas + skill summary) March 3, 2014
- Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
- C language \t usage
- Programming exercises: special numbers (problem solving ideas + code implementation)
- PS cutting height 1px, Y-axis tiling background image problem
- 1076 forwards on Weibo (30 points)
- How to use Alibaba Vector Icon
- How many questions can you answer for the interview of Mechanical Engineer?
- Shift operator (detailed)
猜你喜欢

ES6 notes

Matlab judge palindrome number (only numbers)

CCF drawing (full mark code + problem solving ideas + skill summary) February 2, 2014

How to use Alibaba Vector Icon

@PathVariable

CCF access control system (Full Score code + problem solving idea) 201412-1
![[matlab] 3D drawing summary](/img/57/05156340ccdd79b866c4df955b3713.jpg)
[matlab] 3D drawing summary
![[matlab] 2D drawing summary](/img/de/6bb5385f440a2997dbf9cbb9a756eb.jpg)
[matlab] 2D drawing summary

Svn password forgetting solution

Error $(...) size is not a function
随机推荐
1027 colors in Mars (20 points)
CCF date calculation (Full Score code + skill summary) February 2, 2015
1031 Hello world for u (20 points)
JS time conversion standard format, timestamp conversion standard format
1137: encrypted medical record
Repair of incorrect deletion of win10 boot entry
Forward declaration of classes
1132: stone scissors cloth
这种零件该怎么编程加工?
1076 forwards on Weibo (30 points)
Matlab two-dimensional array example (extract data)
Summary of C language interview questions
Color classification of sorting
高清机械原理 · 机械设计经典动图
G - building a space station
I - constructing roads
Matlab finds prime numbers within 100
Minimum covering substring of two pointers
1015 reversible primes (20 points)
Examples of bubble sorting and matrix element screening in MATLAB