摘要: GetMessage是阻塞的,即没有消息时,它就不往下继续执行。 优点:没有消息则不占用CPU。PeekMessage是非阻塞的,不管有没有消息,它都继续执行。 优点:在没有消息时,可以做一些事情。 阅读全文
posted @ 2014-08-24 09:15 luzhiyuan 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1 //动态数组 2 vector theVector; 3 theVector.push_back(1); 4 theVector.push_back(2); 5 theVector.push_back(3); 6 theVector.pop_ba... 阅读全文
posted @ 2014-08-24 08:43 luzhiyuan 阅读(283) 评论(0) 推荐(0) 编辑