主要解决“百度地图”官网上的例子的bug,摘取如下代码...
分类:
其他好文 时间:
2014-10-16 14:18:42
阅读次数:
96
容器操作使用 docker 命令行操作 docker 容器启动容器core@localhost ~ $ docker run
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
-a, --attach=[] Attach to STDIN, ST...
分类:
其他好文 时间:
2014-10-16 12:55:13
阅读次数:
301
优先队列,水题。
三个医生,对应三个优先队列就可以了。
多组数据要初始化优先队列
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 0x7fffffff
#define eps 1e-8
#defi...
分类:
其他好文 时间:
2014-10-16 13:28:22
阅读次数:
204
Heavy Transportation
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 21037
Accepted: 5569
Description
Background
Hugo Heavy is happy. After the breakdo...
分类:
其他好文 时间:
2014-10-16 14:18:02
阅读次数:
180
最近遇到了一个问题,就是我的listviewitem中有个图片,点击的时候需要变成另一种图片,结果在getView()中设置了响应,但是可以执行,就是不起作用,在网上查了很多资料也没有解决。最后发现时ViewHolder的创建位置有问题;之前是在adapter入口的位置创建了一个adapter,这样每次执行getView()的时候只是重新new了一个对象出来,所以setOnClickListene...
分类:
其他好文 时间:
2014-10-16 14:34:22
阅读次数:
176
题目链接:
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1668
Root
Regionals 2006 >> Asia
- Beijing
3667 - Ruler
Ti...
分类:
其他好文 时间:
2014-10-16 14:50:52
阅读次数:
241
1.新建....xml
android:drawable="@drawable/ic_launcher" />
android:drawable="@drawable/btn"/>
2,
android:id="@+id/btn_l...
分类:
其他好文 时间:
2014-10-16 14:17:22
阅读次数:
168
android:layout_width="200dp"
android:layout_height="50dp"
android:hint="请输入账号"
android:singleLine="true"
android:drawableLeft="@drawable/ic_launcher" /...
分类:
其他好文 时间:
2014-10-16 13:10:40
阅读次数:
139
Fragment中有一个ViewPager,ViewPager的每个pager为Fragment
如此内嵌引发的异常:
java.lang.IllegalStateException: Activity has been destroyed
at android.support.v4.app.FragmentManagerImp
的解决方案...
分类:
其他好文 时间:
2014-10-16 13:26:42
阅读次数:
526
多看你一眼,就会喜欢多一点。咦?为什么呢?来看看。
女友让我给她的同事介绍男朋友,我说出了一个名字,女友简直跳起来:“啊,他哪里配得上我同事?” 。其实,她同事并不见得有多美,不过,在她眼里,同事美若天仙。
想起我当红娘的一次经历。我是女方线人,朋友是男方线人,看他们迟迟没有进展,我打电话给朋友:“那女孩可是人尖儿,一堆人在后面候着呢!”朋友不疾不徐:“没到时候吧。”“都很忙吧。”又过...
分类:
其他好文 时间:
2014-10-16 13:09:42
阅读次数:
221
讲述共阳极数码管的静态显示和动态显示,有利于初学者进行学习,带您进入电子世界。...
分类:
其他好文 时间:
2014-10-16 13:26:12
阅读次数:
189
Problem
Minesweeper is a computer game that became popular in the 1980s, and is still included in some versions of the Microsoft Windows operating system. This problem has a similar idea, but it does...
分类:
其他好文 时间:
2014-10-16 13:26:02
阅读次数:
255
前一篇译文《使用TCmalloc的堆栈检查》,介绍了Tcmalloc进行堆栈检查,今天翻译《heap-profiling using tcmalloc》,了解如何 TCmalloc进行堆栈分析。...
分类:
其他好文 时间:
2014-10-16 14:48:52
阅读次数:
201
#include
#include
using namespace std;
int a[105],b[105],c[105],d[105];
int main()
{
int n,i,timestart=0,j,temp,t,t1,k;
memset(d,0,sizeof(d));
cin>>n;
for(i=1;i>a[i]>>b[i];
c[i...
分类:
其他好文 时间:
2014-10-16 14:31:32
阅读次数:
450