
编程语言
courage3000
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言:sizeof 会包括字符串结尾的 '\0
#include void main(){ char psz[] = "abcd"; printf("%p\n",&psz[0]); printf("%d\n",sizeof(psz));}输出 5原创 2012-05-13 12:55:20 · 967 阅读 · 0 评论 -
C++ :个人财产类
写一个理财软件,首先我想到的抽象出一个 个人财产 类; class DATA{public: unsigned int year; unsigned char month; unsigned char day;public: DATA(unsigned int Year,unsigned char Month,unsigned char Day){ yea原创 2012-07-10 11:49:17 · 367 阅读 · 0 评论 -
C++ :音乐播放类
#pragma comment(lib,"Vfw32.lib")#include class CPlay{ CStringArray pathArray; HWND hPlay ; enum State{normal,playing,paused}; enum PlayMode{once,loopOne,loopAll,loopOnce,loopRnd};/*原创 2012-07-08 07:24:16 · 1056 阅读 · 0 评论 -
C语言:strlen不会包括字符串末尾的 '\0'
#include #include void main(){ char psz[] = "abcd"; printf("%p\n",&psz[0]); printf("%d\n",strlen(psz));}输出 4原创 2012-05-13 13:25:57 · 987 阅读 · 0 评论