資源簡介
基于C++ Template的實現RTree,很有借鑒意義。
代碼片段和文件信息
#include?
#include?
#include?
#include?“RTree.h“
//
//?MemoryTest.cpp
//
//?This?demonstrates?a?use?of?RTree
//
//?Use?CRT?Debug?facility?to?dump?memory?leaks?on?app?exit
#ifdef?WIN32
??//?The?following?macros?set?and?clear?respectively?given?bits
??//?of?the?C?runtime?library?debug?flag?as?specified?by?a?bitmask.
??#ifdef???_DEBUG
????#define??SET_CRT_DEBUG_FIELD(a)?\
??????????????_CrtSetDbgFlag((a)?|?_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG))
????#define??CLEAR_CRT_DEBUG_FIELD(a)?\
??????????????_CrtSetDbgFlag(~(a)?&?_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG))
??#else
????#define??SET_CRT_DEBUG_FIELD(a)???((void)?0)
????#define??CLEAR_CRT_DEBUG_FIELD(a)?((void)?0)
??#endif
#endif?//WIN32
//
//?Get?a?random?float?b/n?two?values
//?The
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????7401??2004-02-22?23:00??MemoryTest.cpp
?????文件?????????970??2005-01-20?18:44??README.TXT
?????文件????????1378??2004-02-23?19:50??Test.cpp
?????文件???????42956??2005-01-20?18:45??RTree.h
評論
共有 條評論