摘要: COLORREF RGB(BYTEbyRed,// red component of colorBYTEbyGreen,// green component of colorBYTEbyBlue// blue component of color);用16进制写 阅读全文
posted @ 2014-03-28 20:51 皮皮uu 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: classshape{public:shape(){};virtualvoiddraw() //注意这里设置为虚函数{ 画图形;}};classrectangle : publicshape{public:rectangle(){};voiddraw(){ 画方形;}};classround : publicshape{public:round(){};voiddraw(){ 画圆形;}};voidmain(){shape * s;s = newrectangle();s->draw();s = newround();s->draw();} 阅读全文
posted @ 2014-03-28 20:37 皮皮uu 阅读(195) 评论(0) 推荐(0) 编辑
摘要: msvcrt.dll是微软在windows操作系统中提供的C语言运行库执行文件(Microsoft C Runtime Library),其中提供了printf,malloc,strcpy等C语言库函数的具体运行实现,并且为使用C/C++(Vc)编绎的程序提供了初始化(如获取命令行参数)以及退出等功能。 阅读全文
posted @ 2014-03-27 20:23 皮皮uu 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 修改设置:工程(Project)-> 属性(Properties)-> 配置属性(Configuration Properties)-> c/c++-> 代码生成(Code Generation)->运行库(Use run-time library)->多线程调试DLL(/MD) 阅读全文
posted @ 2014-03-27 20:12 皮皮uu 阅读(222) 评论(0) 推荐(0) 编辑