当前位置:网站首页>Shallow and first code
Shallow and first code
2022-07-03 05:02:00 【Thirteen idle guests】
C Language is a high level language ,
low-level machine language Binary system
01000100010001
assembly language Mnemonic symbol
10010 Add add
B Language
senior C Language C++ java python...
C Language is good at low-level development , Of course, it can also be used for other development
Standard grammar ANSIC, among C 89/90 Is the most commonly used , also C99,C11,C17...
Editor used by editor VS2019-- Integrated development environment
Editor + compiler + The debugger
stay C What is created in a language is usually .c.h The file of
.c-- Source file
.h-- The header file
How to write the first source file ?
1. compiler VS2019
2. Create project
3. Create the source file
4. Write code
5. compile + link + function ctrl+f5(+fn)
To write code, first write the main function
Mainstream writing
int main(){
return0;
}
Old fashioned writing , Rarely used
void main() {
}
int main(void) Express main The function does not require any arguments
int main(int argc,char* argv[])
{} Inside is the function body
return0 And int-- Shaping correspondence ,0 Is an integer , The return value is 0
The use of library functions should include the corresponding header file #inclide<stdio.h>
std-i-o The standard input Output header file
std--standard
i--input
o--output
边栏推荐
- Notes | numpy-11 Array operation
- Market status and development prospect prediction of global fermentation acid industry in 2022
- [set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)
- 112 stucked keyboard (20 points)
- 论文阅读_中文医疗模型_ eHealth
- [USACO 2009 Dec S]Music Notes
- 1110 complete binary tree (25 points)
- Market status and development prospects of the global automatic tea picker industry in 2022
- Compile and decompile GCC common instructions
- JDBC database operation
猜你喜欢
Three representations of signed numbers: original code, inverse code and complement code
Compile and decompile GCC common instructions
Learn to use the idea breakpoint debugging tool
Promise
《牛客刷verilog》Part II Verilog进阶挑战
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)
[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology
C language self-made Games: Sanzi (tic tac toe chess) intelligent chess supplement
Basic knowledge of reflection (detailed explanation)
Career planning of counter attacking College Students
随机推荐
Hire cashier (differential constraint)
The consumption of Internet of things users is only 76 cents, and the price has become the biggest obstacle to the promotion of 5g industrial interconnection
论文阅读_ICD编码_MSMN
Actual combat 8051 drives 8-bit nixie tube
Caijing 365 stock internal reference: what's the mystery behind the good father-in-law paying back 50 million?
Wechat applet waterfall flow and pull up to the bottom
1115 counting nodes in a BST (30 points)
Shuttle + alluxio accelerated memory shuffle take-off
Concurrent operation memory interaction
Review the configuration of vscode to develop golang
M1 Pro install redis
2022-02-11 daily clock in: problem fine brush
C language self-made Games: Sanzi (tic tac toe chess) intelligent chess supplement
Three representations of signed numbers: original code, inverse code and complement code
Day 51 - tree problem
第十九届浙江省 I. Barbecue
Handling record of electric skateboard detained by traffic police
[SQL injection] joint query (the simplest injection method)
并发操作-内存交互操作
Keepalived热备与HAProxy