C语言学习笔记01
Step1 C语言的第一个程序 代码行 作用 解释 #include <stdio.h> 头文件包含 引入标准输入输出库(Standard Input/Output)。printf 函数就定义在这个库中。没有它,你就不能在屏幕上打印任何东西。 int main() { ... } 主函数定义 main 是 C 程序的入口点。操作系统就是从这里开始执行你的程序的。int 表示这个函数执行完毕后会返回一个整数值。 printf("Hello, World!\n"); 核心输出语句 调用 printf 函数,将括号内的字符串内容打印到屏幕上。\n 是一个转义字符,表示换行。 return 0; 程序返回 告诉操作系统程序已经成功执行完毕。在 C 语言中,return 0 通常表示程序正常退出。 #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; } 基础入门与数据类型 程序的最小结...
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 StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment