当前位置:网站首页>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

边栏推荐
- Market status and development prospect prediction of the near infrared sensor industry of the global Internet of things in 2022
- 编译GCC遇到的“pthread.h” not found问题
- 2022-02-12 daily clock in: problem fine brush
- First + only! Alibaba cloud's real-time computing version of Flink passed the stability test of big data products of the Institute of ICT
- Current market situation and development prospect forecast of the global fire boots industry in 2022
- RT thread flow notes I startup, schedule, thread
- Notes | numpy-08 Advanced index
- 1118 birds in forest (25 points)
- Notes | numpy-07 Slice and index
- Problems encountered in fuzzy query of SQL statements
猜你喜欢

Use Sqlalchemy module to obtain the table name and field name of the existing table in the database

Interface frequency limit access

论文阅读_清华ERNIE

Apache MPM model and ab stress test

Keepalived热备与HAProxy

Learn to use the idea breakpoint debugging tool

Esp32-c3 learning and testing WiFi (II. Wi Fi distribution - smart_config mode and BlueIf mode)

Promise

Retirement plan fails, 64 year old programmer starts work again

MediaTek 2023 IC written examination approved in advance (topic)
随机推荐
[USACO 2009 Dec S]Music Notes
Notes | numpy-11 Array operation
[research materials] annual report of China's pension market in 2021 - Download attached
Concurrent operation memory interaction
Current market situation and development prospect forecast of global UV sensitive resin 3D printer industry in 2022
MySQL master-slave configuration
1099 build a binary search tree (30 points)
[luatos sensor] 1 light sensing bh1750
50 practical applications of R language (36) - data visualization from basic to advanced
Notes | numpy-07 Slice and index
Handler understands the record
Online VR model display - 3D visual display solution
Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
The reason why the entity class in the database is changed into hump naming
[research materials] 2022q1 game preferred casual game distribution circular - Download attached
Three representations of signed numbers: original code, inverse code and complement code
Promise
leetcode452. Detonate the balloon with the minimum number of arrows
2022-02-11 daily clock in: problem fine brush
Sprintf formatter abnormal exit problem