2010年5月5日
摘要: Component的width, height只包括content和padding的width和height,不包括margin的width和height 阅读全文
posted @ 2010-05-05 19:40 cppfans 阅读(186) 评论(0) 推荐(0) 编辑
  2010年4月29日
摘要: http://msdn.microsoft.com/zh-cn/library/f90ybzkh.aspx /HEAP(设置堆大小) /HEAP:reserve[,commit] 备注 /HEAP... 阅读全文
posted @ 2010-04-29 11:12 cppfans 阅读(496) 评论(0) 推荐(0) 编辑
  2010年4月18日
摘要: Lwuit与Lcdui可以相互调用,如果需要在一个Midlet中同时使用Lwuit和Lcdui库,需要在Midlet中保留一个Lcdui Display的全局变量,可以在startApp方法中初始化。... 阅读全文
posted @ 2010-04-18 21:12 cppfans 阅读(757) 评论(0) 推荐(0) 编辑
  2010年4月16日
摘要: C++构造函数按下列顺序被调用:(1)任何虚拟基类的构造函数按照它们被继承的顺序构造;(2)任何非虚拟基类的构造函数按照它们被继承的顺序构造;(3)任何成员对象的构造函数按照它们声明的顺序调用;(4)... 阅读全文
posted @ 2010-04-16 13:59 cppfans 阅读(8707) 评论(0) 推荐(0) 编辑
  2010年3月30日
摘要: 问题描述: 从CC打开.net 2003解决方案(*.sln)发生以下异常: An unhandled exception has been caught by the VSW exception filter. 解决方案: 删除CC下面的*.suo和*.ncb文件(这两个文件应该都是View-private File)。 阅读全文
posted @ 2010-03-30 09:28 cppfans 阅读(238) 评论(0) 推荐(0) 编辑
  2010年3月23日
摘要: Absence makes the heart grow fonder.久别情更深。 此语中fonder是fond的比较级。---------------------------------------------------------------------------------------------------absence有“缺席”,“不存在”以及“空白”之类的意思。absence f... 阅读全文
posted @ 2010-03-23 17:06 cppfans 阅读(569) 评论(0) 推荐(0) 编辑
摘要: Absence makes the heart grow fonder. 小别胜新婚。After you. 您先。 Allow me. 让我来。 Any day will do. 哪一天都行夕 Any messages for me? 有我的留言吗? Any thing else? 还要别的吗? Any urgent thing? 有急事吗?Are you kidding? 你在开玩笑吧! Are... 阅读全文
posted @ 2010-03-23 16:20 cppfans 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 3. [15] Write a program to list all of the keys and values in %ENV. Print the results in two columns in ASCIIbetical order. For extra credit, arrange the output to vertically align both columns. The l... 阅读全文
posted @ 2010-03-23 14:07 cppfans 阅读(136) 评论(0) 推荐(0) 编辑
  2010年3月22日
摘要: 偶然有这种情况,一个成员函数在逻辑上是const,但它却仍需要改变某个成员的值。对于用户而言,这个函数看似没有改变其对象的状态,然而,它却可能更新了某些用户不能直接访问的细节。这通常被称为逻辑的常量性。例如,Date类可能有一个函数,它应返回一个用户可以用于打印的字符串表示。构造出这种表示可能是一个相对费时的操作,因此,保留一个副本,在重复需要的时候直接返回这个副本,这一做法也就有意义了,除非这个... 阅读全文
posted @ 2010-03-22 20:04 cppfans 阅读(433) 评论(0) 推荐(0) 编辑
摘要: const成员函数getI()调用非const成员函数f(),编译不通过。 阅读全文
posted @ 2010-03-22 19:51 cppfans 阅读(308) 评论(0) 推荐(0) 编辑