当前位置:网站首页>C语言一点点(未来可会增加)
C语言一点点(未来可会增加)
2022-07-01 00:39:00 【星辰北天】
C开发学习记录
引入标准库, 写个入口
#include <stdio.h> // 引入标准库
//入口函数(初学固定格式)
int main(){
return 0;
}
符号的使用
1. %引用数据类型(简写)
%d : double ------ 整数型
%s : String ------ 字符串型
%c : char ------ 字符型
%f : float ----- 浮点型
\n : 换行
2.指针(指向地址---与scanf连用)
&引用变量地址
常用函数
printf("类型", 变量);
scanf("类型", &引用数据);
方法的定义(输出Hello)
切记C中方法需要在mian方法前写!!!
void sayHello(){
printf("%s", "Hello,Function");
}
边栏推荐
- 女朋友说:你要搞懂了MySQL三大日志,我就让你嘿嘿嘿!
- 初识 Flutter 的绘图组件 — CustomPaint
- The real topic of the 11th provincial competition of Bluebridge cup 2020 - crop hybridization
- 获取屏幕高度
- Left join displays the specified value when the left join matching data is null
- ArrayList分析1-循环、扩容、版本
- Two position relay st2-2l/ac220v
- 2021电赛F题openmv和K210调用openmv api巡线,完全开源。
- Mustache syntax
- [go] go implements row column conversion of sets
猜你喜欢
随机推荐
CSDN common complex formula template record
ArrayList analysis 1-cycle, capacity expansion, version
Exercises on recursion in C language
【网络丢包,网络延迟?这款神器帮你搞定所有!】
Windows环境下安装MongoDB数据库
Sword finger offer 18 Delete the node of the linked list
Principes de formation de la programmation robotique
技术人进阶画业务大图,手把手教学来了
Shift operators
二十多年来第一次!CVPR最佳学生论文授予中国高校学生!
Tcp/ip protocol stack, about TCP_ RST | TCP_ ACK correct attitude
Authentication principle of Ranger plug-in
Ranger plug-in development (Part 2)
5. TPM module initialization
初识 Flutter 的绘图组件 — CustomPaint
【go】go 实现行专列 将集合进行转列
染色法判断二分图
XJY-220/43AC220V静态信号继电器
The question of IBL precomputation is finally solved
CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解









