摘要:
#include <iostream>#define MaxSize 100using namespace std;#define ElemType chartypedef struct tnode{ ElemType data; struct tnode* lchild,*rchild;}BTNode;void CreateBTree(BTNode* &bt,char *str){ BTNode *st[MaxSize],*p = NULL; int top = -1,k,j=0; char ch; bt = NULL; ch = str[j]; ... 阅读全文
摘要:
[code]#include <afx.h>#include <afxwin.h>#include <afxinet.h>#include <stdio.h>// compile for release with// cl /MT /GX// or for debug with// cl /MTd /GXCWinApp theApp;void main(){ if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) { // catastropic error! 阅读全文