- 博客(3)
- 收藏
- 关注
原创 练习
1.输出a-z的ASCII码#include <stdio.h>int main(void){ char ch; for(ch ='a';ch <= 'z';ch++){ printf("The ASCII value for %c is %d\n ",ch,ch); } return 0; }
2017-05-22 21:28:10 227
原创 巧用函数返回值
代码一 下面代码利用 scanf(“%ld”,&num)的返回值来判断循环是否继续。 include int main(){ long num,sum = 0L; printf("please input num to sum!\n"); while(scanf("%ld",&num) == 1){ sum = sum + num; p
2017-05-20 22:46:52 333
原创 数据结构线性表的基本函数
#include #include #include #define TURE 1 #define FLASE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 //不可行 #define OVERFLOW -1 #define LIST_INIT_SIZE 50 //
2013-11-15 19:53:53 1221
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人