|
[原创]文件切割器--V 1.0(附VC源码)
一般我就用WinRAR(存储+分卷)分割文件,合并起来也方便,想压缩也容易. |
|
|
|
[求助]用哪一个API可以取得硬件的物理序号啊,详情请见内
注册表里的那个是逻辑MAC地址.物理MAC地址也可以获得,不需要额外驱动和特殊权限.我在WinXP上测试通过. 目前的CPU已经确定得不到可以唯一的值了. |
|
[求助]用哪一个API可以取得硬件的物理序号啊,详情请见内
取网卡硬件MAC地址也不需要驱动,不需要管理员权限. |
|
|
|
[已解决]如何取得类成员函数的地址?
#include <stdio.h> #include <stdlib.h> class C {public: void f() {} }; void main() { char buf[12]; sprintf(buf,"%u",C::f); int d=atoi(buf); printf("%p\n",d); } #include <stdio.h> #include <stdarg.h> class C {public: void f() {} }; int func(int unused,...) { va_list args; va_start(args,unused); return va_arg(args,int); } void main() { printf("%p\n",func(0,C::f)); } |
|
[求助]用哪一个API可以取得硬件的物理序号啊,详情请见内
硬盘物理序列号,网卡硬件物理地址,这两个比较常用,99%以上电脑都能取得. |
|
[原创]给师弟做了刘涛涛题目
atoi函数确实是ANSI的,MSDN上面已经写了,而itoa函数不是ANSI的. |
|
[讨论]CHKen C++是什么程序
VC6的MFC动态库在Win98SE以上系统自带,完全不用考虑带dll的问题. 而borland的动态库不可能与windows捆绑了. 这就是微软的"照顾". 利用MFC生成的CHtmlView框架,即不用写一行代码的简易web浏览器. 使用MFC动态库编译,UPX压缩,大小11.5KB. 使用MFC静态库编译,UPX压缩,大小117KB. |
|
|
|
[原创]给师弟做了刘涛涛题目
'\0' != "\0" |
|
.Net 程序的困惑
.NET是和java竞争的产物.到现在java仍然无法占据桌面平台的开发,好像只在企业级平台,嵌入式设备和web服务器领域获得了成功. 确实,.NET几乎是MS吹捧起来的,估计以后会用捆绑手段来推广.Vista好像捆绑了.NET Framework吧. |
|
[原创]给师弟做了刘涛涛题目
严格地说,'\0'是char的空字符,0是int类型整数的0,二者是不同的. 但实际上几乎所有的计算机都使用ASCII编码的字符,所以'\0'==(char)0, 而char(0)和(int)0可以安全地隐式转换,所以'\0'==(int)0. 在while中,C++只判断bool类型,而(int)0和false可以约定俗成地隐式转换. 所以最后得到的结论是:'\0'==false. |
|
|
|
[原创]给师弟做了刘涛涛题目
嗯,如果考虑"+"和"-",把: s+=atoi(str); 换成: if(*str>='0') s+=atoi(str); #include <stdio.h> #include <stdlib.h> int sum(const char *str) { int s=0; do { if(*str>='0') s+=atoi(str); while(*str>='0' && *str<='9') ++str; }while(*str++); return s; } void main(int argc,char **argv) { if(argc==2) printf("%d\n",sum(argv[1])); } 输入:"aker--9=++10" 输出:19 程序的目标是尽量简单,如果要考虑极高效率,atoi就要自己写了. |
|
[原创]给师弟做了刘涛涛题目
#include <stdio.h> #include <stdlib.h> int sum(const char *str) { int s=0; do { s+=atoi(str); while(*str>='0' && *str<='9') ++str; }while(*str++); return s; } void main(int argc,char **argv) { if(argc==2) printf("%d\n",sum(argv[1])); } |
|
[求助]关于列表对话框
这是listview控件本身支持的,到MSDN上搜索List-View Controls. |
|
[讨论]CHKen C++是什么程序
利用MFC动态库也能写出很小的程序. |
|
[讨论]哪种压缩算法压缩和解压速度最快
http://www.maximumcompression.com/data/summary_mf3.php |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值