看看我的代码,为什么会出错,怎么改?

来源:百度知道 编辑:UC知道 时间:2024/06/18 12:58:56
#include "stdio.h"
#include "stdlib.h"
#define NULLKEY '?'
typedef struct btnode{
char data;
struct btnode *lchild,*rchild;
}btnode,*BiTree;
BiTree *PreCreatBiTree(BiTree *root){
char ch;
scanf("%c",&ch);
if(ch==NULLKEY){
*root=NULL;
return root;
}
else{
*root=(BiTree)malloc(sizeof(btnode));
(*root)->data=ch;
PreCreatBiTree(&((*root)->lchild));
PreCreatBiTree(&((*root)->rchild));
return root;
}
}

int main(){
BiTree *p,*root=NULL;
p=PreCreatBiTree(root);
system("pause");<

这是系统冲突
请安装微软的这个最新补丁:Microsoft 安全公告 MS06-040

Server 服务中的漏洞可能允许远程执行代码 (921883)

http://www.microsoft.com/china/technet/security/bulletin/MS06-040.mspx

最近很多用户是这样的问题,请安装微软最新补丁来修复这个问题。

这个更新是XP的

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=2996b9b6-03ff-4636-861a-46b3eac7a305

这个是2000SP4的

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=3b61153d-359f-4441-a448-24062cb2387c