摘要: #include #include #define stackinitsize 20#define stackincrement 8typedef struct{ int *base; int *top; int stacksize;}sqstack;int initstack(sqstack &s) {s.base=(int * ) malloc(stackinitsize*sizeof(int)); s.top=s.base; s.stacksize=stackinitsize; return 1; }int push(sqstack &s,int e) { ... 阅读全文
posted @ 2013-10-29 22:15 博园少主 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include #include #include "G:\JS\mystack.h"int main(){ sqstack s; int e; initstack(s); char ch; while (1) { scanf("%c",&ch); if (ch==10) break; if (ch=='(') push(s,ch); else if (ch=')') { if (em... 阅读全文
posted @ 2013-10-29 21:44 博园少主 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #include #include #include "G:\JS\mystack.h"int main(){ sqstack s; int m,n,r,rod,e; initstack(s); scanf("%d %d",&n,&r); m=n; while (n) { rod=n%r; push(s,rod); n=n/r; } printf("\n\nThe resule is:%d(%d)=",m,r); while (!emptystack(s)) { pop(s... 阅读全文
posted @ 2013-10-29 21:35 博园少主 阅读(179) 评论(0) 推荐(0) 编辑
摘要: //本程序接受任意含有+、-、*、/和()的数值表达式,数值允许带小数,输入以#结束。如:((2.4+3.5)*2-(2+3.5)/2)*(2+3)##include #include "G:\express\mystack.h"char piror[7][7]={'>','>','','>', '>','>','','>', '>','>','>' 阅读全文
posted @ 2013-10-29 21:23 博园少主 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include # include "G:\express\mystack.h"char piror[7][7]={'>','>','','>', '>','>','','>', '>','>','>','>','','>', '>','>', 阅读全文
posted @ 2013-10-29 21:13 博园少主 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 #define stackinitsize 50 5 #define stackincrement 8 6 7 typedef struct { 8 int x,y; 9 }posttype;10 11 typedef struct {12 int ord;13 posttype seat;14 int di;15 }elemtype;16 17 typedef struct{18 elemtype *base;19 elemtype *top;20 int stacksize;21 }s... 阅读全文
posted @ 2013-10-29 20:45 博园少主 阅读(248) 评论(0) 推荐(0) 编辑
摘要: (一)统计#include int f(char *s){ int i,j ; i=j=0 ; while (*(s+i)!='\0') { if (*(s+i)>='0' && *(s+i)int f(char *s){ int t=0 ; while (*s) //(*s!='\0') { if (*s>='A' && *s='a' && *sint f(char *s){ int t=0 ; while (*s) //(*s!='\0' 阅读全文
posted @ 2013-10-27 17:19 博园少主 阅读(338) 评论(0) 推荐(0) 编辑
摘要: --(一)创建教材学生-课程数据库create database s_cgouse s_cgo--建立“学生”表Student,学号是主码,姓名取值唯一。 CREATE TABLE Student (Sno CHAR(9) PRIMARY KEY, /* 列级完整性约束条件*/ Sname CHAR(20) UNIQUE, /* Sname取唯一值*/ Ssex CHAR(2), Sage SMALLINT, Sdept CHAR(20) )go--建立一个“课程”表Course CREATE TABLE Course ( Cno CHAR(4) PRIMARY KEY, Cn... 阅读全文
posted @ 2013-10-24 13:20 博园少主 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 一次宝玉去看宝钗,正在一个“识金锁”,一个“认通灵”,不期黛玉已摇摇摆摆的进来,一见宝玉,便笑道:“哎哟!我来的不巧了!”宝钗笑问“这是怎么说?”黛玉道:“早知他来,我就不来了。” 宝钗又问“这是什么意思?” 黛玉道:“什么意思呢,来呢一齐来,不来一个也不来;今儿他来;明儿我来,间错开了来,岂不天天有人来呢?也不至太冷落,也不至太热闹。”当宝玉听宝钗说吃冷酒对身体有害而放下酒杯时,正巧雪雁送手炉来,黛玉又一语双关地说:“谁叫你送来的?难为他费心。——那里就冷死我了呢!” 雪雁说是紫鹃叫送来的,她马上又说:“也亏了你倒听他的话!我平日和你说的,全当耳旁风;怎么他说了你就依,比圣旨还快呢!”聪敏的 阅读全文
posted @ 2013-10-23 21:24 博园少主 阅读(178) 评论(1) 推荐(0) 编辑
摘要: 数据结构习题及答案 严蔚敏_课后习题答案 http://www.doc88.com/p-243584884293.html273089354随着女性获得平等权力的趋势,女性日渐增长的经济权力以及为支撑家庭父母双方同时工作的需要,都成为引起诸如婚前协议,未婚妈妈,小型家庭和高离婚率等现象发生的因素。 家庭结构正经历这些重要改变,男人和女人正在学习适应新的角色。调查显示,女性比男性工作时间更长,为支撑家庭负了更多的责任,所有的变化带来了对社会改革的全新思考。1====googleWith the trend of women's access to equal rights, women& 阅读全文
posted @ 2013-10-19 19:51 博园少主 阅读(197) 评论(0) 推荐(0) 编辑