摘要:用无序链表实现字典ADT
阅读全文
随笔分类 - ACM|C|C++
Pure Program
摘要://insort function//插入法排序//n是元素个数template void insort ( Elem A[], int n ){ for ( int i = 1; i 0) && ( A[j] void selsort (Elem A[],int n){ for( int i = 0 ; i A[j] ) minIndex = j; } ...
阅读全文
摘要:// uuu.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]){ cout应该放在#include "stdafx.h"之后,要不会出错:错误 1 error C2871: “std”: 具有该名称的命名...
阅读全文
|