C语言复习笔记
C语言复习笔记
Lesson 1: 输入输出
program程序 Operations运算符 expressions表达式
statements语句
理解第一个程序hello.c的各个部分:
12345#include : preprocessor directive 预处理指令main: function 函数int main(): takes no arguments, return an integer 无参数, 返回整型main: .c contains one and only one main function 一个.c文件有且仅有一个main函数printf: print+f: format 格式化输出
%f或者%lf都表示匹配输出double类型的值;但是scanf输入只能使用%lf匹配
如果是输入输出的是long double类型, 对应的格式串是
%Lf.
const double PI; 定义常量,
常量要全大写命名。
% 和 f 中间可以有一些东西.
例如%10.2f这里的点不是小数点,...
Hello World
Welcome to Hexo! This is your very
first post. Check documentation for
more info. If you get any problems when using Hexo, you can find the
answer in troubleshooting or
you can ask me on GitHub.
Quick Start
Create a new post
1$ hexo new "My New Post"
More info: Writing
Run server
1$ hexo server
More info: Server
Generate static files
1$ hexo generate
More info: Generating
Deploy to remote sites
1$ hexo deploy
More info: Deployment