返回首页 我的新博客
摘要: 关于PreTranslateMessage()函数的小程序示例: BOOL CSearchuserDlg::PreTranslateMessage(MSG* pMsg){ if(pMsg->message==WM_KEYDOWN) //判断是否有按键按下 { switch(pMsg->wParam) { case VK_DOWN: ... 阅读全文
posted @ 2009-03-18 15:57 buffer的blogs 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: 1. 环境 /usr/local/apache/htdocs/ (待检索的文件在该目录下) /usr/local/apache/temp/ (作为中转的文件夹) /usr/local/apache/cgi-bin/ 2. 将gcc search.c产生的a.out放置在/usr/local/apache/cgi-bin/中,权限设置为nobody可 以执行。 3. chown -R n... 阅读全文
posted @ 2009-03-18 15:23 buffer的blogs 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 全排列,比如字母ABC,所有排列有A ,AB,AC,ABC,ACB,B,BA,BC,BAC,BCA,C,CA,CB,CAB,CBA。 //原理是插入, 在一个字符串的所有位置插入新字符.//如: AB 插入C , 位置有 1A2B3, 插入后形成 CAB ACB ABC char *AllList(char *str, int *pNum)...{ int i, j, k, n; in... 阅读全文
posted @ 2009-03-18 15:22 buffer的blogs 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 1. 环境 /usr/local/apache/htdocs/ (待检索的文件在该目录下) /usr/local/apache/temp/ (作为中转的文件夹) /usr/local/apache/cgi-bin/ 2. 将gcc search.c产生的a.out放置在/usr/local/apache/cgi-bin/中,权限设置为nobody可 以执行。 3. chown -R n... 阅读全文
posted @ 2009-03-18 15:20 buffer的blogs 阅读(319) 评论(0) 推荐(0) 编辑
摘要: ...............................................................《C++标准函数库》中说的 有三个函数可以将字符串的内容转换为字符数组和C—string 1.data(),返回没有”\0“的字符串数组 2,c_str(),返回有”\0“的字符串数组 3,copy() .................................. 阅读全文
posted @ 2009-03-18 15:12 buffer的blogs 阅读(807) 评论(0) 推荐(1) 编辑