摘要:
#include "stdafx.h"#include <iostream>using namespace std;typedef struct Node{ int data; struct Node* next;}NODE,*LinkList;//定义类型int _tmain(int argc, _TCHAR* argv[]){ LinkList link=(NODE *)malloc(sizeof(NODE)); void InitLinkList(LinkList list);//初始化 LinkList SearchLinkList(LinkList l 阅读全文
摘要:
#include "stdafx.h"#include <iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ void HeapSort(int* pp,int l); void DisplayHeap(int* pp,int l); int len; cout<<"Please input the array length:"<<endl; cin>>len; int* p=new int[len+1];//heap arr 阅读全文