首先,应该清楚MFC的消息循环(::GetMessage,::PeekMessage),消息泵(CWinThread::PumpMessage)和MFC的消息在窗口之间的路由是两件不同的事情。在MFC的应用程序中(应用程序类基于CWinThread继承),必须要有一个消息循环,他的作用是从应用程序的...
分类:
其他好文 时间:
2014-04-28 15:41:07
阅读次数:
488
Problem G. Birthday CakeBackgroundLucy and Lily
are twins. Today is their birthday. Mother buys a birthday cake for them.Now we
put the cake onto a De...
分类:
其他好文 时间:
2014-04-28 15:37:11
阅读次数:
391
#import "RootViewController.h"@interface
RootViewController ()@end@implementation RootViewController-
(id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:
移动开发 时间:
2014-04-28 15:11:25
阅读次数:
656
有时候无法从控件中拖拽一个按钮到storyboard,必须用编写代码方式添加按钮: 1 -
(void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 // Do any additional setup after
loading the view...
分类:
其他好文 时间:
2014-04-28 15:01:42
阅读次数:
532
摘自C++编程思想:------------------------------
继承与组合:接口的重用
-------------------------------继承和组合都允许由已存在的类型创建新类型,两者都是在新类型中嵌入已存在的类型的子对象。然而,当我们想重用原类型作为新类型的内部实现的...
分类:
其他好文 时间:
2014-04-28 14:59:41
阅读次数:
471
“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 ——
只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。得到“答案正确”的条件是:1. 字符串中必须仅有P, A,
T这三种字符,不可以包含其它字符;2. 任意形如 xPATx 的字符串都...
分类:
其他好文 时间:
2014-04-28 14:55:50
阅读次数:
739
会议时间:组队开发第二周 星期日 开始时间晚上3:30-10:20会议地点:学一食堂
二楼到会人员:李志岩 王亚蕊 安帅 薛禄坤 张新宇 孙存良会议概要: 1、总结开发的成果; 2、讨论开发中遇到的问题; 3、 更新任务板;内容一
总结开发的成果李志岩 实现添加通知栏部分代码效果图张新宇 对spin...
分类:
其他好文 时间:
2014-04-28 14:53:52
阅读次数:
519
class Program { int count; public Program() { }
public Program(int count) { this.count = count; ...
分类:
其他好文 时间:
2014-04-28 14:49:57
阅读次数:
477
介绍功能:网络爬虫开发语言:c++开发者:Sébastien
Ailleret(法国)特点:只抓取网页,高效(一个简单的larbin的爬虫可以每天获取500万的网页)安装安装平台:Ubuntu
12.10下载:http://sourceforge.net/projects/larbin/files/...
分类:
其他好文 时间:
2014-04-28 14:46:03
阅读次数:
565
CString str;str = _T("hello
world!")USES_CONVERSION; //定义后才能使用T2Achar
buff[1024];sprintf_s(buff,1024,"%s\r\n",T2A(str));这样一种方式可能会使编码方式改变在转换回来的时候要注意WCH...
分类:
其他好文 时间:
2014-04-28 14:44:02
阅读次数:
503