- 博客(6)
- 收藏
- 关注
原创 Cannot assign to 'self' outside of a method in the init family
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the init family 原因:只能在init方法中给self赋值,Xcode判断是否为init
2015-02-04 22:18:54 302
原创 c语言计算器(栈实现)
#include #include #define MAXSIZE 100 typedef struct stack { int stack[MAXSIZE]; int index; }Stack; int isNoOp(int ch) { if (ch == ')' || ch == '(') { return 1;
2014-10-11 17:11:57 1467
转载 Type View requires API level 14 (current min is 4): <GridLayout>
android:columnCount="4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/gridContainer" android:animateLayoutChanges="true"
2014-03-30 15:36:04 415
原创 android升级sdk之后无法识别SDK Location的一个解决方式
把你的SDK下tools/lib目录中的plugin.prop文件内容改为 # begin plugin.prop plugin.version=11.0.0 # end plugin.prop
2014-03-29 17:14:16 1876
转载 Eclipse背景颜色修改
Eclipse背景颜色修改: 操作界面默认颜色为白色。对于我们长期使用电脑编程的人来说,白色很刺激我们的眼睛,所以我经常会改变workspace的背景色,使眼睛舒服一些。设置方法如下: 1、打开window->Preference,弹出Preference面板 2、展开General标签,选中Editors选项,展开。 3、选中 Test Editors,右边出现
2014-03-23 11:34:06 406
转载 使用TreeSet集合比较Comparable接口和Comparator接口的区别
ThreeSet能够对集合中的对象排序,当TreeSet想集合中加入一个对象时,会把它插入到有序的对象序列中。那么TreeSet是如何排序呢?TreeSet支持两种排序方式:自然排序和客户化排序.在默认情况下TreeSet采用自然排序方式。 先来介绍介绍什么是自然排序吧 1、自然排序 在JDK类库中,有一部分类实现了Comparable接口,如Integer Doub
2014-03-14 12:00:28 333
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人