参考Java的官方tutorial和Doc整理如下。What is EnumAn enum type is a special data type.It enablesfor a variable to be a set of predefined constants.Because they ar...
分类:
编程语言 时间:
2015-11-10 00:18:12
阅读次数:
312
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n = 13, retu...
分类:
其他好文 时间:
2015-11-06 21:05:22
阅读次数:
227
QT开发内存管理问题:在linux上提示:底层由于接收到操作系统的信号而停止;在windows上提示:the inferior stopped because it triggered an exception;主要是因为内存使用出现错误。昨天在delete 一个layout时出现了这样的错误,主要...
分类:
其他好文 时间:
2015-11-03 12:20:34
阅读次数:
196
1 Sending a message真正好玩的才伴随着 “sending messages”开始了. Sending a message will be the basic building block of your Objective-C apps because it is how you ...
分类:
其他好文 时间:
2015-11-02 00:12:23
阅读次数:
195
刚刚在ASP.NET创建一个Service,在运行时,它即显示异常:The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled ...
分类:
Web程序 时间:
2015-10-29 10:54:57
阅读次数:
182
升级为iOS9后,默认请求类型为https,如何使用http进行请求会报错The resource could not be loaded because the App Transport Security policy requires the use of a secure connectio...
分类:
移动开发 时间:
2015-10-28 21:14:35
阅读次数:
220
It is NOT recommended to place elements directly in the server.xml file. This is because it makes modifying the Context configuration more invasive s....
分类:
Web程序 时间:
2015-10-27 21:50:45
阅读次数:
328
最近提出了一个需求:在一个iframe中展现saiku首页呵呵,这还不简单。直接 套进去不就完事了吗。。我真是个天才。。结果:呜呜。。。报错啦。。。错误提示:Refused to display 'http://localhost:8080/saiku/' in a frame because it...
分类:
编程语言 时间:
2015-10-26 18:46:09
阅读次数:
1597
1. Delegationa relationship that is not directly supported by Java. This is a midway between inheritance and composition, because you place a number o...
分类:
编程语言 时间:
2015-10-26 18:22:54
阅读次数:
180
When you want to convert from float or real to character data, using the STR string function is usually more useful than CAST( ). This is because STR ...
分类:
其他好文 时间:
2015-10-26 13:42:38
阅读次数:
188