将main()的实现写在drawShapes(),drawCircle(),drawRectangle()...之前. 结果编译的时候出现了 conflicting types for "方法名"的错误。故到网上查找答案,发现在这里需要严格按照函数出现的先后顺序才能成功编译,也就是main()要定义...
分类:
其他好文 时间:
2014-11-02 21:00:05
阅读次数:
221
主要参考资料:1、PHP官方手册:http://php.net/manual/zh/language.types.array.php基本含义:PHP 中的数组实际上是一个有序映射。映射是一种把 values 关联到 keys 的类型。此类型在很多方面做了优化,因此可以把它当成真正的数组,或列表(向量...
分类:
编程语言 时间:
2014-11-02 08:12:12
阅读次数:
207
(本文参考:http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html)Nested Classesclass OuterClass { ...... class StaticNestedClass { .....
分类:
编程语言 时间:
2014-10-31 23:31:34
阅读次数:
334
1. TARGETS - Info - URL Types
identifier -> weixin
URL Schemes -> 应用id
2.在AppDelegate.h 引入头文件 - #import
"WXApi.h"
定义
{
enum WXScene _scene;
}
3.在AppDelegate.m中
- (id)init...
分类:
微信 时间:
2014-10-31 13:51:05
阅读次数:
610
1、Android文件Apk下载变ZIP压缩包解决方案如果你的下载服务器为Nginx服务器,那么,在Nginx安装目录下的conf/mime.types文件的对应位置,加上以下一行语句,指定APK文件的MIME类型为 application/vnd.android.package-archive 即...
分类:
移动开发 时间:
2014-10-30 20:52:14
阅读次数:
187
Android - 警告Nested weights are bad for performance本文地址: http://blog.csdn.net/caroline_wendy原因: Layout weights require a widget to be measured twice. When a LinearLayout with non-zero weights is nested...
分类:
移动开发 时间:
2014-10-30 19:09:37
阅读次数:
312
StoredProcedure是一个抽象类,必须写一个子类来继承它,这个类是用来简化JDBCTemplate运行存储过程操作的。首先我们写一个实现类:package com.huaye.framework.dao;import java.sql.Types;import java.util.Hash...
分类:
编程语言 时间:
2014-10-30 14:44:51
阅读次数:
168
IntroductionThe limits.h header determines various properties of the various variable types. The macros defined in this header limits the values of va...
分类:
其他好文 时间:
2014-10-29 23:50:08
阅读次数:
260
Implement the following types and define ServeHTTP methods on them. Register them to handle specific paths in your web server.type String stringtype S...
分类:
Web程序 时间:
2014-10-28 23:51:10
阅读次数:
222
??
You can use the
as operator to perform certain types of conversions between compatible reference types or
nullable types.
The as operator is like a cast operation. However, if the conversion i...