
Pointers on C
文章平均质量分 71
ZssHe
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
<Pointers on C> Chapter 1
1.7.5 编写一条scanf语句,它需要读取两个整数,分别保存于quantity和price变量,然后再读取一个字符串,保存在一个名叫department的字符数组里。 // p16 1.7.5 #include #define LEN 20 int main(void) { int quantity; int price; char department[LEN]原创 2013-10-30 22:07:37 · 355 阅读 · 0 评论 -
<Pointers on C> Chapter 2
2.8.1 编写一个程序,它由3个函数组成,每个函数分别保存在一个单独的源文件中。 //increment.c int increment(int a) { return a+1; } //negate.c int negate(int b) { return -b; } // p28 2.8.1 //main.c #include int main(void) {原创 2013-10-31 20:05:50 · 425 阅读 · 0 评论 -
<Pointers on C> Chapter 4
//: p63 4141 #include #include int main() { int n; scanf("%d",&n); /* **注意讨论负数的情况。 */ if (n < 0) { printf("Negative number!\n"); return EXIT_FAILURE; } float a = 0; float原创 2013-11-06 21:34:25 · 482 阅读 · 0 评论 -
memset的使用
转自百度百科 http://baike.baidu.com/view/982208.htm转载 2014-07-31 15:20:04 · 376 阅读 · 0 评论