01 2008 档案

《深入浅出MFC》笔记(五)
摘要:MFC的几个核心技术:RTTI,Dynamic Creation,Message Mapping,Command Routing。 阅读全文

posted @ 2008-01-20 20:04 Phinecos(洞庭散人) 阅读(647) 评论(0) 推荐(0) 编辑

《深入浅出MFC》笔记(四)
摘要:#define HIGHEST_THREAD 0x00#define ABOVE_AVE_THREAD 0x3F#define NORMAL_THREAD 0x7F#define BELOW_AVE_THREAD 0xBF#define LOWEST_THREAD 0xFF#define SLEEPDELAY 1#define FORLOOPDELAY ... 阅读全文

posted @ 2008-01-19 21:55 Phinecos(洞庭散人) 阅读(837) 评论(2) 推荐(0) 编辑

《深入浅出MFC》笔记(三)
摘要:1,Win32 Console程序示例: #include #include #include #include const int FILEMAX = 300; // allow max. 300 files in each directorytypedef struct _DESTFILE{//目标文件 WIN32_FIND_DATA fd; BOOL bMatch;} DES... 阅读全文

posted @ 2008-01-18 21:08 Phinecos(洞庭散人) 阅读(1910) 评论(0) 推荐(0) 编辑

《深入浅出MFC》笔记(二)
摘要:1,Message Map雏形之实现 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);LONG OnCreate(HWND,UINT,WPARAM,LPARAM);LONG OnPaint(HWND,UINT,WPARAM,LP... 阅读全文

posted @ 2008-01-18 19:01 Phinecos(洞庭散人) 阅读(1673) 评论(0) 推荐(0) 编辑

《深入浅出MFC》笔记(一)
摘要:看第一章的第一个例子时,和很多初学者一样,我也想知道如何把可执行文件的默认的图标: 改成自己需要的,例如这样: 首先来看看资源文件中到底是怎么定义的: IDI_CH_1 ICON "JJHOUR.ICO"IDC_CH_1 MENU BEGIN POPUP "文件(&F)" BEGIN MENUITEM ... 阅读全文

posted @ 2008-01-17 22:28 Phinecos(洞庭散人) 阅读(778) 评论(0) 推荐(0) 编辑

C++ Exercises(八)
摘要:1,创建进程 #include #include int main( VOID ){ STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); // Start the chil... 阅读全文

posted @ 2008-01-11 23:20 Phinecos(洞庭散人) 阅读(717) 评论(0) 推荐(0) 编辑

HDU1022 Train Problem I
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1022 #include #include #include #include using namespace std;string strIn,strOut;stack strTmp;//临时栈vector strInfo;int main(int argc,char* argv[]){ int... 阅读全文

posted @ 2008-01-06 15:52 Phinecos(洞庭散人) 阅读(1113) 评论(2) 推荐(0) 编辑

HDU1021 Fibonacci Again
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1021 简单题,就是找找规律,就可以发现从2开始,每次递增4的值满足被3整除的要求 #includeusing namespace std;void doProcess(int n){//从2开始,每次递增 if (n%4==2) { cout>n) { d... 阅读全文

posted @ 2008-01-04 23:27 Phinecos(洞庭散人) 阅读(824) 评论(0) 推荐(0) 编辑

HDU1020 Encoding
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1020 #include#include using namespace std;void doProcess(string& str){ int count,i,j; for (i=0;i1) { cout>caseNum) { fo... 阅读全文

posted @ 2008-01-04 22:56 Phinecos(洞庭散人) 阅读(832) 评论(1) 推荐(0) 编辑

HDU1019 Least Common Multiple
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1019 用辗转相除法求最小公倍数时要注意应该用a/y*b,若用a*b/y,则可能会数据溢出。 #include#include using namespace std;int LCM(long x,long y){ long temp; long a,b; a=x; b=... 阅读全文

posted @ 2008-01-04 21:02 Phinecos(洞庭散人) 阅读(844) 评论(1) 推荐(0) 编辑

HDU1018 Big Number
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1018 网上有求解的数学公式, #include#include using namespace std;int main(){ int caseNum,i,j,n,count; double sum; while (cin>>caseNum) { for (i=0... 阅读全文

posted @ 2008-01-04 19:44 Phinecos(洞庭散人) 阅读(777) 评论(1) 推荐(0) 编辑

HDU1017 A Mathematical Curiosity
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1017 简单题,就是注意下输出格式就ok, #include#includeusing namespace std;int doProcess(int n,int m){ int temp,count=0; for (int a=1;a>caseNum) { for (i... 阅读全文

posted @ 2008-01-04 19:03 Phinecos(洞庭散人) 阅读(1097) 评论(0) 推荐(0) 编辑

HDU1016 Prime Ring Problem
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1016 递归法:(简单但会超时。。。) #include #include #include using namespace std;void swap(int& a,int& b){ int tmp; tmp = a; a = b; b = tmp;}bool isPrime(... 阅读全文

posted @ 2008-01-04 17:14 Phinecos(洞庭散人) 阅读(1405) 评论(3) 推荐(0) 编辑

导航