2009年9月2日
摘要: 看看如下的helloWorld:版本1:#include<iostream>#include<time.h>using namespace std;void add(char* szChar){ char str[20]="hello,world"; strcpy(szChar,str); //szChar="hello,world";}voi... 阅读全文
posted @ 2009-09-02 17:58 蚂蚁跳楼 阅读(219) 评论(0) 推荐(0)
摘要: 获取时间,没有CString 的format 其实也有更优雅的。下面的代码直接拷贝去运行就可以了 #include<iostream>#include<time.h>using namespace std;void main(){ struct tm *pTm; time_t t; t=time(NULL); pTm=loc... 阅读全文
posted @ 2009-09-02 12:04 蚂蚁跳楼 阅读(253) 评论(0) 推荐(1)