摘要: //计算多个鞋尺码对应的英寸的长度#include<stdio.h>#define ADJUST 7.64#define SCALE 0.352int main(void ){ double shoe,foot; printf("Shoe size(men's) foot length\n"); s 阅读全文
posted @ 2017-04-10 22:11 Zhao_Xu_Jie 阅读(174) 评论(0) 推荐(0)
摘要: //主要是数组的scanf用法和strlen sizeof 的区别#include<stdio.h>#define DENSITY 62.4int main(void){ float weight ,volume; int size ,letters; char name[40]; printf(" 阅读全文
posted @ 2017-04-10 22:09 Zhao_Xu_Jie 阅读(212) 评论(0) 推荐(0)
摘要: //以十进制、八进制和十六进制输出100,加入#会显示前缀#include<stdio.h>int main(){ int x = 100; printf("dec = %d; octal = %o;hex = %x\n",x,x,x); printf("dec = %d; octal = %#o; 阅读全文
posted @ 2017-04-10 22:08 Zhao_Xu_Jie 阅读(136) 评论(0) 推荐(0)
摘要: //队列的结构定义 typedef int QElemType; typedef struct { QElemType data[MAXSIZE]; int front; int rear;}SqQueue; //初始化一个空队列Status InitQueue(SqQueue *Q){ Q->fr 阅读全文
posted @ 2017-03-18 10:37 Zhao_Xu_Jie 阅读(1456) 评论(0) 推荐(0)
摘要: /*栈的结构定义*/typedef int SElemType;typedef struct{ SElemType data[MAXSIZE]; int top;}SqStack; //进栈Status Push(SqStack *S,SElemType e){ if(S->top == MAXSI 阅读全文
posted @ 2017-03-18 10:35 Zhao_Xu_Jie 阅读(349) 评论(0) 推荐(0)