今天调试程序时log中突然打印这样的错误,但是程序并没有crash,为了不放过一个错误,我决定调查一下。 当时是离开一个activity,然后提示是否退出此界面,接下来就打印此错误: 显然,我用Dialog确认是否退出,但是activity销毁后并没有处理Dialog的退出。 解决办法: 知道了问题 ...
分类:
移动开发 时间:
2017-10-13 16:07:16
阅读次数:
196
//使用指针完成两个数之间的交换 #include void interchange (int *u,int *v); int main() { int x=5,y=10; printf("originally x=%d and y= %d \n",x,y); interchange(&x,&y);... ...
分类:
其他好文 时间:
2017-09-25 22:07:43
阅读次数:
107
原题链接在这里:https://leetcode.com/problems/set-mismatch/description/ 题目: The set S originally contains numbers from 1 to n. But unfortunately, due to the d ...
分类:
其他好文 时间:
2017-09-16 12:00:02
阅读次数:
211
Published online 26 January 2011This article was originally published in the journal Nature Graduate students bear as much responsibility as their men ...
分类:
其他好文 时间:
2017-09-01 15:04:33
阅读次数:
234
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n ...
分类:
其他好文 时间:
2017-08-09 12:47:46
阅读次数:
144
Problem statement The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got dupli ...
分类:
其他好文 时间:
2017-07-24 10:00:50
阅读次数:
195
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n... ...
分类:
编程语言 时间:
2017-07-24 01:35:45
阅读次数:
303
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n ...
分类:
其他好文 时间:
2017-07-23 19:39:08
阅读次数:
209
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n ...
分类:
其他好文 时间:
2017-07-23 13:37:47
阅读次数:
174
在看APUE习题10.5的时候提示了这篇文章,讲的非常清晰,设计也非常巧妙,所以把原文放在这里。值得自己去实现。 Title: Implementing Software Timers By: Don Libes Originally appeared in the Nov. 1990 "C Use ...
分类:
其他好文 时间:
2017-06-04 22:54:56
阅读次数:
241