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

  • 大小: 142KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-24
  • 語言: C/C++
  • 標(biāo)簽: A*??

資源簡介

游戲地圖開發(fā) A*最短路徑算法 c++語言源代碼

資源截圖

代碼片段和文件信息

//?BeehiveCell.cpp?:?定義應(yīng)用程序的入口點(diǎn)。
//

#include?“stdafx.h“
#include?“BeehiveCell.h“
#include?“GetCell.h“

#define?MAX_LOADSTRING?100

int?g_CellSize;

HBITMAP?g_BitmapBkGnd;?//背景位圖

//?全局變量:
HINSTANCE?hInst; //?當(dāng)前實(shí)例
TCHAR?sztitle[MAX_LOADSTRING]; //?標(biāo)題欄文本
TCHAR?szWindowClass[MAX_LOADSTRING]; //?主窗口類名

//?此代碼模塊中包含的函數(shù)的前向聲明:
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
INT_PTR?CALLBACK About(HWND?UINT?WPARAM?LPARAM);
HBITMAP?CreateBkBitmap(HWND?hWnd);

int?APIENTRY?_tWinMain(HINSTANCE?hInstance
?????????????????????HINSTANCE?hPrevInstance
?????????????????????LPTSTR????lpCmdLine
?????????????????????int???????nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);

? //?TODO:?在此放置代碼。
MSG?msg;
HACCEL?hAccelTable;

//?初始化全局字符串
LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);
LoadString(hInstance?IDC_BEEHIVECELL?szWindowClass?MAX_LOADSTRING);
MyRegisterClass(hInstance);

//?執(zhí)行應(yīng)用程序初始化:
if?(!InitInstance?(hInstance?nCmdShow))
{
return?FALSE;
}

hAccelTable?=?LoadAccelerators(hInstance?MAKEINTRESOURCE(IDC_BEEHIVECELL));

//?主消息循環(huán):
while?(GetMessage(&msg?NULL?0?0))
{
if?(!TranslateAccelerator(msg.hwnd?hAccelTable?&msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

return?(int)?msg.wParam;
}



//
//??函數(shù):?MyRegisterClass()
//
//??目的:?注冊窗口類。
//
//??注釋:
//
//????僅當(dāng)希望
//????此代碼與添加到?Windows?95?中的“RegisterClassEx”
//????函數(shù)之前的?Win32?系統(tǒng)兼容時,才需要此函數(shù)及其用法。調(diào)用此函數(shù)十分重要,
//????這樣應(yīng)用程序就可以獲得關(guān)聯(lián)的
//????“格式正確的”小圖標(biāo)。
//
ATOM?MyRegisterClass(HINSTANCE?hInstance)
{
WNDCLASSEX?wcex;

wcex.cbSize?=?sizeof(WNDCLASSEX);

wcex.style =?CS_HREDRAW?|?CS_VREDRAW;
wcex.lpfnWndProc =?WndProc;
wcex.cbClsExtra =?0;
wcex.cbWndExtra =?0;
wcex.hInstance =?hInstance;
wcex.hIcon =?LoadIcon(hInstance?MAKEINTRESOURCE(IDI_BEEHIVECELL));
wcex.hCursor =?LoadCursor(NULL?IDC_ARROW);
wcex.hbrBackground =?(HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName =?MAKEINTRESOURCE(IDC_BEEHIVECELL);
wcex.lpszClassName =?szWindowClass;
wcex.hIconSm =?LoadIcon(wcex.hInstance?MAKEINTRESOURCE(IDI_SMALL));

return?RegisterClassEx(&wcex);
}

//
//???函數(shù):?InitInstance(HINSTANCE?int)
//
//???目的:?保存實(shí)例句柄并創(chuàng)建主窗口
//
//???注釋:
//
//????????在此函數(shù)中,我們在全局變量中保存實(shí)例句柄并
//????????創(chuàng)建和顯示主程序窗口。
//
BOOL?InitInstance(HINSTANCE?hInstance?int?nCmdShow)
{
???HWND?hWnd;

???hInst?=?hInstance;?//?將實(shí)例句柄存儲在全局變量中

???hWnd?=?CreateWindow(szWindowClass?sztitle?WS_OVERLAPPEDWINDOW
??????CW_USEDEFAULT?0?CW_USEDEFAULT?0?NULL?NULL?hInstance?NULL);

???if?(!hWnd)
???{
??????return?FALSE;
???}

??? //設(shè)置蜂窩CELL的邊長
g_CellSize?=?50;?//50像素
SetCellSize(g_CellSize);

//創(chuàng)建背景位圖
g_BitmapBkGnd?=?CreateBkBitmap(hWnd);

???ShowWindow(hWnd?nCmdShow);
???UpdateWindow(hWnd);

???return?TRUE;
}

//
//??函數(shù):?Wn

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

?????目錄??????????0??2009-08-10?09:20??BeehiveCell

?????目錄??????????0??2009-08-10?08:38??BeehiveCell\BeehiveCell

?????文件???????7443??2009-08-10?08:38??BeehiveCell\BeehiveCell\BeehiveCell.cpp

?????文件?????????39??2009-08-10?07:27??BeehiveCell\BeehiveCell\BeehiveCell.h

?????文件??????23558??2005-12-13?20:33??BeehiveCell\BeehiveCell\BeehiveCell.ico

?????文件???????2869??2009-08-10?07:27??BeehiveCell\BeehiveCell\BeehiveCell.rc

?????文件???????4881??2009-08-10?07:30??BeehiveCell\BeehiveCell\BeehiveCell.vcproj

?????文件???????1413??2009-08-10?09:21??BeehiveCell\BeehiveCell\BeehiveCell.vcproj.PC-JINFD.hoodlum.user

?????目錄??????????0??2009-08-10?08:38??BeehiveCell\BeehiveCell\Debug

????.......?????????0??2005-12-08?14:56??BeehiveCell\BeehiveCell\GetCell.cpp

?????文件???????2543??2009-08-10?07:32??BeehiveCell\BeehiveCell\GetCell.h

?????文件???????1560??2009-08-10?07:27??BeehiveCell\BeehiveCell\ReadMe.txt

?????文件????????737??2009-08-10?07:27??BeehiveCell\BeehiveCell\Resource.h

?????文件??????23558??2005-12-13?20:33??BeehiveCell\BeehiveCell\small.ico

?????文件????????216??2009-08-10?07:27??BeehiveCell\BeehiveCell\stdafx.cpp

?????文件???????1151??2009-08-10?07:27??BeehiveCell\BeehiveCell\stdafx.h

?????文件????????898??2009-08-10?07:27??BeehiveCell\BeehiveCell.sln

????..A..H.?????11264??2009-08-10?09:21??BeehiveCell\BeehiveCell.suo

?????文件?????139579??2009-08-10?09:20??BeehiveCell\BeehiveCell01.jpg

?????目錄??????????0??2009-08-10?07:41??BeehiveCell\debug

?????文件?????102400??2009-08-10?08:38??BeehiveCell\debug\BeehiveCell.exe

-----------?---------??----------?-----??----

???????????????324109????????????????????21


評論

共有 條評論