91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

分別用暴力法和遞歸方法實現了最近點對的計算,并且帶有圖形界面!

資源截圖

代碼片段和文件信息

//?ClosestPoints.cpp?:?定義應用程序的類行為。
//

#include?“stdafx.h“
#include?“ClosestPoints.h“
#include?“MainFrm.h“

#include?“ClosestPointsDoc.h“
#include?“ClosestPointsView.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif


//?CClosestPointsApp

BEGIN_MESSAGE_MAP(CClosestPointsApp?CWinApp)
ON_COMMAND(ID_APP_ABOUT?&CClosestPointsApp::OnAppAbout)
//?基于文件的標準文檔命令
ON_COMMAND(ID_FILE_NEW?&CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?&CWinApp::OnFileOpen)
//?標準打印設置命令
ON_COMMAND(ID_FILE_PRINT_SETUP?&CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()


//?CClosestPointsApp?構造

CClosestPointsApp::CClosestPointsApp()
{
//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}


//?唯一的一個?CClosestPointsApp?對象

CClosestPointsApp?theApp;


//?CClosestPointsApp?初始化

BOOL?CClosestPointsApp::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設置為包括所有要在應用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

//?初始化?OLE?庫
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return?FALSE;
}
AfxEnableControlContainer();
//?標準初始化
//?如果未使用這些功能并希望減小
//?最終可執行文件的大小,則應移除下列
//?不需要的特定初始化例程
//?更改用于存儲設置的注冊表項
//?TODO:?應適當修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應用程序向導生成的本地應用程序“));
LoadStdProfileSettings(4);??//?加載標準?INI?文件選項(包括?MRU)
//?注冊應用程序的文檔模板。文檔模板
//?將用作文檔、框架窗口和視圖之間的連接
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CClosestPointsDoc)
RUNTIME_CLASS(CMainframe)???????//?主?SDI?框架窗口
RUNTIME_CLASS(CClosestPointsView));
if?(!pDocTemplate)
return?FALSE;
AddDocTemplate(pDocTemplate);



//?分析標準外殼命令、DDE、打開文件操作的命令行
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);


//?調度在命令行中指定的命令。如果
//?用?/RegServer、/Register、/Unregserver?或?/Unregister?啟動應用程序,則返回?FALSE。
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;

//?唯一的一個窗口已初始化,因此顯示它并對其進行更新
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
//?僅當具有后綴時才調用?DragAcceptFiles
//??在?SDI?應用程序中,這應在?ProcessShellCommand??之后發生
return?TRUE;
}



//?用于應用程序“關于”菜單項的?CAboutDlg?對話框

class?CAboutDlg?:?public?CDialog
{
public:
CAboutDlg();

//?對話框數據
enum?{?IDD?=?IDD_ABOUTBOX?};

protected:
virtual?void?DoDataExchange(CDataExchange*?pDX);????//?DDX/DDV?支持

//?實現
protected:
DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg()?:?CDialog(CAboutDlg::IDD)
{
}

void?CAboutDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CAboutDlg?CDialog)
END_MESSAGE_MAP()

//?用于運行對話框的應用程序命令
void?CClosestPointsApp::OnAppAbout()
{
CAboutDlg?aboutDlg;
aboutDlg.DoModal();
}


//?CClosestPointsApp?消息處理程序


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????904??2010-10-07?18:54??ClosestPoints\ClosestPoints.sln

????..A..H.?????44032??2011-09-13?10:54??ClosestPoints\ClosestPoints.suo

?????文件?????200704??2011-01-09?21:17??ClosestPoints\debug\ClosestPoints.exe

?????文件????1424016??2011-01-09?21:17??ClosestPoints\debug\ClosestPoints.ilk

?????文件????3722240??2011-01-09?21:17??ClosestPoints\debug\ClosestPoints.pdb

?????文件??????55452??2010-10-29?18:31??ClosestPoints\ClosestPoints\ClosestPoints.aps

?????文件???????3372??2010-10-07?18:54??ClosestPoints\ClosestPoints\ClosestPoints.cpp

?????文件????????515??2010-10-07?18:54??ClosestPoints\ClosestPoints\ClosestPoints.h

?????文件??????12501??2010-10-08?14:14??ClosestPoints\ClosestPoints\ClosestPoints.rc

?????文件???????6243??2010-10-08?14:04??ClosestPoints\ClosestPoints\ClosestPoints.vcproj

?????文件???????1413??2010-10-07?21:21??ClosestPoints\ClosestPoints\ClosestPoints.vcproj.RJXY-001.student.user

?????文件???????1427??2011-01-09?21:29??ClosestPoints\ClosestPoints\ClosestPoints.vcproj.WWW-B5CAB9F3420.Administrator.user

?????文件???????1151??2010-10-29?18:32??ClosestPoints\ClosestPoints\ClosestPointsDoc.cpp

?????文件????????588??2010-10-07?18:54??ClosestPoints\ClosestPoints\ClosestPointsDoc.h

?????文件???????9382??2010-10-29?18:33??ClosestPoints\ClosestPoints\ClosestPointsView.cpp

?????文件???????1570??2010-10-08?13:59??ClosestPoints\ClosestPoints\ClosestPointsView.h

?????文件????????721??2010-10-08?14:15??ClosestPoints\ClosestPoints\DistInfo.cpp

?????文件????????617??2010-10-08?14:19??ClosestPoints\ClosestPoints\DistInfo.h

?????文件???????1803??2010-10-07?18:54??ClosestPoints\ClosestPoints\MainFrm.cpp

?????文件????????655??2010-10-07?18:54??ClosestPoints\ClosestPoints\MainFrm.h

?????文件??????11062??2010-10-07?21:14??ClosestPoints\ClosestPoints\Nlogn.cpp

?????文件????????835??2010-10-07?21:15??ClosestPoints\ClosestPoints\Nlogn.h

?????文件????????742??2010-10-08?01:09??ClosestPoints\ClosestPoints\Nsquare.cpp

?????文件????????398??2010-10-08?01:09??ClosestPoints\ClosestPoints\Nsquare.h

?????文件???????3574??2010-10-07?18:54??ClosestPoints\ClosestPoints\ReadMe.txt

?????文件???????1194??2010-10-08?14:14??ClosestPoints\ClosestPoints\resource.h

?????文件????????144??2010-10-07?18:54??ClosestPoints\ClosestPoints\stdafx.cpp

?????文件???????2489??2010-10-07?18:54??ClosestPoints\ClosestPoints\stdafx.h

?????文件??????21630??2005-12-08?14:56??ClosestPoints\ClosestPoints\res\ClosestPoints.ico

?????文件????????369??2010-10-07?18:54??ClosestPoints\ClosestPoints\res\ClosestPoints.rc2

............此處省略29個文件信息

評論

共有 條評論