![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
AirBlue_
这个作者很懒,什么都没留下…
展开
-
数据结构线性表的基本函数
#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 · 1214 阅读 · 0 评论 -
巧用函数返回值
代码一下面代码利用 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 · 328 阅读 · 0 评论 -
练习
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 · 223 阅读 · 0 评论