1 内联函数: 1 取消了函数调用的环节。 2 对于内联代码,程序无需调到另一个位置执行代码,再跳回来。因此,内联函数的运行速度比常规的快,,但占用的空间业更多。 3 要成为内联函数,要在函数定义或者声明前加关键字 inline 例如:inline int square() { } 4 内联函数中不 ...
分类:
其他好文 时间:
2016-06-22 00:20:04
阅读次数:
277
目前使用非常广泛的框架技术主要有Android Universal Image Loader,Picasso, Glide和Fresco,最开始出现的应该算是UIL(Universal Image Loader),记得刚开始用图片加载框架的时候,主要就是使用UIL,UIL功能丰富。Picasso是Square搞出来的,Glide与Picasso比较类似,Google推荐Glide,Fresco是Facebook推出的...
分类:
移动开发 时间:
2016-06-21 07:16:46
阅读次数:
227
特点概要Square的retrofit作为目前android比较火的网络框架,具有以下特点:
1、rest api 风格
2、网络核心使用优秀开源框架okttp,其本身致力于组装request和便捷转换response。
3、代码简洁,拓展性高,开发包只有90k左右
4、支持RxJava、Guava、Java8等适配器。
简单使用案例是一个简单的登陆请求案例。使用name和pw...
分类:
编程语言 时间:
2016-06-21 06:46:32
阅读次数:
525
Firt thought: an variation to LCS problem - but this one has many tricky detail. I learnt the solution from this link:https://github.com/wangyongliang ...
分类:
其他好文 时间:
2016-06-18 10:17:16
阅读次数:
170
POJ 1681 Painter's Problem(高斯消元) Description There is a square wall which is made of n*n small square bricks. Some bricks are white while some bricks ...
分类:
其他好文 时间:
2016-06-16 20:18:19
阅读次数:
258
题目链接:传送门 题目大意:给你一个n*n包含".","X"的图,你有一次机会选择一个k*k的子矩阵,将子矩阵全部变为".",问当操作过后,得到的最大联通子块包含的"."的数目是多少。 题目思路:其实这个题自己只想到了一个暴力的思路,当然TLE没商量,但实际上正确的想法就是先dfs预处理所有"."的 ...
分类:
其他好文 时间:
2016-06-16 01:22:33
阅读次数:
174
<td class="text-center">{{demand.LOW_PRICE}}-{{demand.HIGH_PRICE}}?</td> <td class="text-center">{{demand.LOW_SQUARE}}-{{demand.HIGH_SQUARE}}</td> <td ...
分类:
其他好文 时间:
2016-06-15 01:36:06
阅读次数:
113
速刷一道DFS Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til ...
分类:
其他好文 时间:
2016-06-14 23:44:01
阅读次数:
180
指针在编程中有时很重要的作用 我们可以用它完成一些看似不可能完成的任务 #include<iostream>using namespace std;void square(int *n){ *n=*n**n;}int main(){ int num = 2; cout<<"The original ...
分类:
编程语言 时间:
2016-06-13 13:43:29
阅读次数:
143
#coding:utf-8 '''这里是此模块(py)的__doc__属性,放在最顶端,作用是描述此模块的信息''' def square(x): ''' 这是一个求平方的函数,通过函数名.__doc__属性可以到的描述信息,相当于一些帮助信息二期 ''' return x**2 class Emp ...
分类:
编程语言 时间:
2016-06-12 07:10:05
阅读次数:
242