if(e=0)
e=0;
else
e=1;
if(f==0)
f=0;
else
f=1;
printf("\nthe logic value of hequ:%d\nthe logic value of xiqu:%d\nthe
logic value of tiaojian:%d\nthe logic value of shuangtiaojian:%d\n",c,d,e,f);
printf("do you want to continue?input 'y' continue");
g=getch
();
{
if(g=='y')
;
else break;
}
}
}
2(B类)
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<malloc.h>
typedef struct Node //二叉树节点结构体
{
char data; //存节点字符
struct Node *leftchild;//左孩子指针
struct Node *rightchild;//右孩子指针
int temp;//判断该节点前是否有特别的字符类型
}BeTreeNode;
/*typedef struct
{
char stack[30];
int top;
}SeqStack;//账的结构体*/
void print_char(BeTreeNode *root);
void prints(BeTreeNode *p);
评论0
最新资源