![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Pointers on C
文章平均质量分 71
ZssHe
这个作者很懒,什么都没留下…
展开
-
<Pointers on C> Chapter 1
1.7.5 编写一条scanf语句,它需要读取两个整数,分别保存于quantity和price变量,然后再读取一个字符串,保存在一个名叫department的字符数组里。// p16 1.7.5#include #define LEN 20int main(void){ int quantity; int price; char department[LEN]原创 2013-10-30 22:07:37 · 327 阅读 · 0 评论 -
<Pointers on C> Chapter 2
2.8.1 编写一个程序,它由3个函数组成,每个函数分别保存在一个单独的源文件中。//increment.cint increment(int a){ return a+1;}//negate.cint negate(int b){ return -b;}// p28 2.8.1//main.c#include int main(void){原创 2013-10-31 20:05:50 · 388 阅读 · 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 · 443 阅读 · 0 评论 -
memset的使用
转自百度百科http://baike.baidu.com/view/982208.htm转载 2014-07-31 15:20:04 · 332 阅读 · 0 评论