?? multisort.h
字號:
// MultiSort.h : main header file for the MULTISORT application
//
#if !defined(AFX_MULTISORT_H__21941A3D_9FF7_4CAE_8FB1_17D72093237B__INCLUDED_)
#define AFX_MULTISORT_H__21941A3D_9FF7_4CAE_8FB1_17D72093237B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CMultiSortApp:
// See MultiSort.cpp for the implementation of this class
//
class CMultiSortApp : public CWinApp
{
public:
CMultiSortApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMultiSortApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CMultiSortApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
struct Data
{
int data[5]; //5個(gè)關(guān)鍵字
int next; //用于分配收集時(shí)形成靜態(tài)鏈表
};
struct Distribute
{
int tail; //表尾
int next; //表頭
};
class Sort
{
public:
CString result; //以CString存放排序結(jié)果
int priority[5]; //優(yōu)先級別
int size; //記錄個(gè)數(shù)
int keynum; //關(guān)鍵字個(gè)數(shù)
struct Data msort[10000];
void ChangetoInt(CString text);
void Init();
int LSDsort_a();
int LSDsort_b(int &head);
int MSDsort();
int disclt(int x,int &head);
int comb(int x,int start,int end);
int combPass(struct Data sortA[],struct Data sortB[],int x,int len,int start,int end);
int combine(struct Data sortA[],struct Data sortB[],int x,int y,int z,int key);
CString Result();
CString Result(int head);
};
extern CString result;
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MULTISORT_H__21941A3D_9FF7_4CAE_8FB1_17D72093237B__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -