04 2015 档案

【转】【C++专题】C++ sizeof 使用规则及陷阱分析
摘要:提示:下文例子都经过Visual C++ 6.0验证,平台为win32 Windows.一、什么是sizeof 首先看一下sizeof在msdn上的定义: The sizeof keyword gives the amount of storage, in bytes, associated wit... 阅读全文

posted @ 2015-04-24 13:19 呆雁 阅读(294) 评论(0) 推荐(0)

【转】C++ 类访问控制public/private/protected探讨
摘要:示例1:----------------------------------------class C{ int c1; int c2;public: void set(C* s, int i, int j) { s->c1 = i; s->c2 = j; }... 阅读全文

posted @ 2015-04-24 10:55 呆雁 阅读(264) 评论(0) 推荐(0)

Determining the Size of a Class Object---sizeof(class)---By Girish Shetty
摘要:There are many factors that decide the size of an object of a class in C++. These factors are:Size of all non-static data membersOrder of data members... 阅读全文

posted @ 2015-04-24 10:05 呆雁 阅读(473) 评论(0) 推荐(0)

c++和java在桌面应用软件开发的区别
摘要:之前一直用c/c++比较多。最近做的事情用java写了个小程序。发现java的工具包很多而且好找,c++的桌面应用工具包就不好找了。 java在项目的buildpath里添加外部jar包即可,c++需要编译好的dll或者将源码一起编译。 java操作excel文件读写,xml读写,tar、g... 阅读全文

posted @ 2015-04-09 16:23 呆雁 阅读(2167) 评论(0) 推荐(0)

导航