上一页 1 ··· 12 13 14 15 16
摘要: //主要是数组的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 阅读(202) 评论(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 阅读(129) 评论(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 阅读(1446) 评论(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 阅读(339) 评论(0) 推荐(0) 编辑
摘要: /* 这题有个疑问: const double BASE1=BREAK1*RATE1; //第二个分界点前总共要缴的税收 const double BASE2=BASE1+(BREAK2-BREAK1)*RATE2; //第三个分界点前总共要缴的税收 为什么只有移到子函数里面有用,放开头提示错误!提 阅读全文
posted @ 2017-03-18 10:04 Zhao_Xu_Jie 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16