Points on C 第一章总结
来源:互联网 发布:kindle阅读器 mac 编辑:程序博客网 时间:2024/05/20 13:36
1. 程序的数据放在哪里? 就在main()函数中。
2. int read_column_numbers(int columns[], int max); 将数组传到函数中时,一般还要再加个参数表示数组的大小。
3. 要从逻辑上删除一段c代码,好的方法是使用#if指令:
#if 0
statements
#endif
4. stdlib.h定义了EXIT_SUCCESS和EXIT_FAILURE符号。
5. 无返回值的函数称为过程 procedure
6. gets读取一行文本,丢弃换行符,并在该行的末尾存储一个NULL字节,然后,gets函数返回一个非NULL值,表示该行已被成功读取。puts函数是gets函数的输出版本,把指定的字符串写道标准输出并在末尾增上一个换行符。
7. NUL是ASCII字符集中'/0'字符的名字,它的字节模式为全0. NULL是指一个其值为0的指针,它们都是整型值,其值也相同,所以它们可以互换使用。 符号NULL在stdio.h中定义。另一方面,并不存在预定义符号NUL, 要想使用它而不是字符变量'/0',必须自行定义。
8. %g 打印一个浮点值。
- Points on C 第一章总结
- codeforces 576C Points on Plane
- C语言第一章总结
- Points on C 开启C语言学习之路
- C语言编程风格--Points on C 学习(2)
- getchar等字符函数使用--Points on C 学习(1)
- [构造 分块] Codeforces #576C. Points on Plane
- Pointers on C (第一章 第二章)
- Pointers on C 重点笔记 第一章
- HDU1700:Points on Cycle
- codeforces251A. Points on Line
- CF251A. Points on Line
- codeforces251A. Points on Line
- Array Points on Surface
- C总结-第一章 关键字(1/6)
- Effective Objective-C 2.0总结(第一章)
- hdu1700 Points on Cycle (数学)
- Max Points on a Line
- ....
- Set up Rsync and Cron Job
- java zip 实现压缩文件和文件夹类Compressor.java
- 面试
- 关于Debug
- Points on C 第一章总结
- 《编程之美》一书八位作者,讲述自己的编程之路
- XmlDocument,XmlNode,XmlElement创建复杂XML文档
- #pragma once与 #ifndef的区别
- 序列化和反序列化
- 我的目标
- 延迟执行的一个例子
- 轻松实现UltraWebGrid中的分页控制 [转]
- 简单的无刷新更换验证码的小例子