2015年7月8日
摘要: 操作环境另外这篇文章写的也挺好的http://blog.reetsee.com/archives/296 操作系统:Mac Os Lion 虚拟主机:VMware Fusion 虚拟系统:Centos 5.5+ 操作用户:Root 实现目的:搭建LNMP环境.安装依赖库和开发环境#依赖库和... 阅读全文
posted @ 2015-07-08 00:26 上海—Michael 阅读(258) 评论(0) 推荐(0) 编辑
  2014年8月7日
摘要: WCHAR woutstr[256];char outch[256];int len = MultiByteToWideChar(CP_UTF8, 0, value, -1, NULL, 0);MultiByteToWideChar(CP_UTF8, 0, value, -1, woutstr, l... 阅读全文
posted @ 2014-08-07 14:10 上海—Michael 阅读(619) 评论(0) 推荐(0) 编辑
  2014年8月5日
摘要: 删除工程目录下的 .ncb .opt 文件,然后就OK了! 阅读全文
posted @ 2014-08-05 18:02 上海—Michael 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 方法一:(msdn)#include #include #include #include #include #pragma comment(lib,"netapi32.lib")typedef struct _ASTAT_{ ADAPTER_STATUS adapt; NAME_BUFF... 阅读全文
posted @ 2014-08-05 15:17 上海—Michael 阅读(412) 评论(0) 推荐(0) 编辑
  2014年8月1日
摘要: 本文是杂篇,纯属笔记,想到哪写到那!1、获取像素的RGB以及填充CPaintDC dc(m_hWnd);COLORREF color=dc.GetPixel(0,0);int R=GetRValue(color);int G=GetGValue(color);nt B=GetBValue(color... 阅读全文
posted @ 2014-08-01 18:27 上海—Michael 阅读(941) 评论(0) 推荐(0) 编辑
  2014年7月14日
摘要: 很不错的教程http://www.yakergong.net/wtl/ 阅读全文
posted @ 2014-07-14 22:09 上海—Michael 阅读(191) 评论(0) 推荐(0) 编辑
  2014年7月13日
摘要: 创建远程分并跟踪:git remote add remote_branch_namegit@github.com:test/test.gitgit fetch upstream 跟踪原始代码删除远程分支如果不再需要某个远程分支了,比如搞定了某个特性并把它合并进了远程的master分支(或任何其他存放... 阅读全文
posted @ 2014-07-13 18:32 上海—Michael 阅读(197) 评论(0) 推荐(0) 编辑
  2014年7月3日
摘要: C++类所占内存大小计算转载时请注明出处和作者联系方式文章出处:http://blog.csdn.net/chenchong08作者联系方式:vision_chen@yeah.net说明:笔者的操作系统是32位的。class A {};sizeof( A ) = ?sizeof( A ) = 1明明... 阅读全文
posted @ 2014-07-03 20:56 上海—Michael 阅读(378) 评论(0) 推荐(0) 编辑
  2014年6月28日
摘要: 基本思想:在遍历结点过程中,设置辅助指针,用于记录先前遍历的结点。这样依次编译的过程中只需修改其后继结点的next域即可。 实现代码:[cpp]view plaincopyprint?typedefintDataType;//类型定义typedefstructnode{//单链表定义DataT... 阅读全文
posted @ 2014-06-28 10:40 上海—Michael 阅读(195) 评论(0) 推荐(0) 编辑
  2014年6月26日
摘要: 【Joseph问题描述】n个人(编号0~(n-1)),从0开始报数,报到(m-1)的退出,剩下的人继续从0开始报数。求胜利者的编号。 【求解思路】我们知道第一个人(编号一定是m%n-1) 出列之后,剩下的n-1个人组成了一个新的约瑟夫环(以编号为k=m%n的人开始): k k+1 k+2 ... n... 阅读全文
posted @ 2014-06-26 16:21 上海—Michael 阅读(1011) 评论(0) 推荐(0) 编辑