- 博客(6)
- 收藏
- 关注
原创 Android中toolbar的简单使用
1、在style先定义一个主题,该主题隐藏了actionbar false true @color/dim_foreground_material_dark @color/accent_material_light @color/accent_materi
2015-10-22 00:55:34
771
原创 数组内部元素操作,将所有0移到后尾
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.void moveZeroes(int* nums, int numsSize) { int i=0, j=0;
2015-10-21 00:52:48
1329
原创 链表给定节点删除
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.void deleteNode(struct ListNode* node) { if(node == NULL) return; node->val = no
2015-10-21 00:07:39
449
原创 DEV-CPP配置EGE
鼓捣了两天,昨天终于给配置好了,特地来分享一下。首先,去官网下个EGE,解压之后到ege15.04\lib\mingw4.8.1\lib里面将libgraphics.a拷贝放到你的DEVC目录下的MinGW64 \ x86_64-w64-mingw32 \ lib中然后再拷贝EGE中include目录下的所有文件,放到DEVC目录下的MinGW64 \ x86_64-w64-mingw32
2015-06-10 12:03:24
2379
转载 何时update()使用
一般情况不用重写update()方法。但是如果你填充背景的颜色跟paint()中的颜色不一样的时候就会有闪烁感。可以重写update方法,事实上,在用双缓冲画图时,一般都会选择重装update()而不是paint()方法,由于在执行paint()方法之前,update()还执行填充背景的动作,所以当重绘的速度很大时,填充背景的动作将很明显,也即闪烁很大,也将,如果在paint()中用双缓冲的话实际
2015-06-04 20:33:02
452
原创 关于Vector“泛型”的理解
通过在数据对象里指定存储对象的类型,来彻底保证数据对象里存储的数据的唯一性。如Vector v = new Vector如这里的v只能存储String类型
2015-05-27 23:02:27
1124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人