随笔 - 493  文章 - 0  评论 - 97  阅读 - 239万
  2010年11月8日
摘要: From: http://www.cnblogs.com/yjm0105/archive/2009/07/16/180620.html1.使用CTime类 CString str;//获取系统时间CTime tm;tm=CTime::GetCurrentTime();str=tm.Format("现在时间是%Y年%m月%d日 %X");MessageBox(str,NULL,MB_OK);2: 得... 阅读全文
posted @ 2010-11-08 23:14 清清飞扬 阅读(436) 评论(0) 推荐(0) 编辑
摘要: class Time{ private:char name[20];double begin;double end;public:Time(char* );Time(clock_t,char* );~Time();void start();void stop();void show();};//Time.cpp 成员函数定义头文件(类的实现文件)#include<iostream>#i... 阅读全文
posted @ 2010-11-08 23:12 清清飞扬 阅读(8008) 评论(0) 推荐(1) 编辑
摘要: From: http://www.cnblogs.com/chenhs/archive/2008/08/19/1270763.htmlCTime类format的使用 使用CTime类可以很方便地取得当前系统时间并转换为各种格式 The format argument consists of one or more codes; as in printf, the formatting codes... 阅读全文
posted @ 2010-11-08 23:10 清清飞扬 阅读(21933) 评论(1) 推荐(0) 编辑
摘要: From: http://www.cppblog.com/guodongshan/archive/2010/10/06/128818.aspx解决一个问题通常有多种方法, 我们总想找到最高效的,所以需要对比不同算法执行所用的时间。可惜的是,C++中提供的方法一般只能精确到毫秒级。提供一种更加精确的方法。编写一个函数,可以在C++中这样写:__declspec(naked)unsigned__int... 阅读全文
posted @ 2010-11-08 23:08 清清飞扬 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 本文演示了读取CListCtrl的方法:界面:读取数据按钮的点击事件代码为:另外,CListCtrl的数据插入参见:http://blog.csdn.net/JoeBlackzqq/archive/2010/11/03/5983558.aspx 阅读全文
posted @ 2010-11-08 22:59 清清飞扬 阅读(3155) 评论(0) 推荐(0) 编辑
摘要: 网上找的源码,新建一个word文档,并插入文本和表格,代码如下: 阅读全文
posted @ 2010-11-08 22:22 清清飞扬 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: 先来看一段简单的C++代码:经过编译,发现根本通不过。这是为什么呢?我们都知道,“&”既可以作取地址符,又可以作引用符,但是程序中使用了“int T(int & a = 5)”,那么它到底是取地址符还是引用符呢?可能你会说,这是一个引用符呀,只是默认值是5。最初,我这样写代码的时候也是这样认为的,但是编译器却指出了错误。没办法,我只好... 阅读全文
posted @ 2010-11-08 21:15 清清飞扬 阅读(771) 评论(1) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示