资源简介
c++版本的求解15数码问题算法源代码2
代码片段和文件信息
#include
#ifndef hr_timer
#include “hr_time.h“
#define hr_timer
#endif
double CStopWatch::LIToSecs( LARGE_INTEGER & L) {
return ((double)L.QuadPart /(double)frequency.QuadPart);
}
CStopWatch::CStopWatch(){
timer.start.QuadPart=0;
timer.stop.QuadPart=0;
QueryPerformanceFrequency( &frequency );
}
void CStopWatch::startTimer( ) {
QueryPerformanceCounter(&timer.start);
}
void CStopWatch::stopTimer( ) {
QueryPerformanceCounter(&timer.stop);
}
double CStopWatch::getElapsedTime() {
LARGE_INTEGER time;
time.QuadPart = timer.stop.QuadPart - timer.start.QuadPart;
return LIToSecs( time) ;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 656 2008-09-04 17:58 hr_time.cpp
文件 323 2008-09-04 17:58 hr_time.h
文件 18000 2008-10-05 10:09 moves.txt
文件 20797 2008-09-17 12:03 puzzle.cpp
文件 877 2008-10-05 10:09 puzzle.sln
文件 12288 2008-10-05 10:26 puzzle.suo
文件 1300 2008-09-17 11:14 ReadMe.txt
相关资源
- Thinking in C++中文版
- C++语言程序设计_第四版_郑莉_高清p
- 东南大学C++课件-何洁月80讲(总).
- DevC++
- C/C++实验系统
- 一个月挑战c++
- vsC++编程新手指导
- C++语言编程器
- VS2008 windows应用程序C++
- C++深入版
- C++PPT
- C++沉思录
- c++核心编程技术
- C++出错提示英汉对照
- c++/c语言学习系统
- C和C++安全编码(中文版)
- c++基础教程
- VC++6.0
- Microsoft Visual C++ 2010
- 嵌入式CC++语言精华文章集锦
- 交通灯管理仿真程序
- CC++库函数
- C++_STL使用例子大全
- C C++精华帖合辑(新手必看)
- C++ 基本语法及实例说明
- 《算法竞赛入门经典》
- C++API
- c++深度剖析木马程序
- c++练习题
- vc++6.0初学入门教程(PDF编辑版)
评论
共有 条评论