1、向下一个活动传递数据 Intent中提供了一系列的putExtra()方法的重载,可以把我们想要传的数据暂存在Intent中,启动一个活动后,只需把这些数据在从Intent中,取出来即可。做一个简单的Demo演示一下: 新建项目MyDataTrans,同时在项目中新建类Second.java和布 ...
分类:
移动开发 时间:
2016-05-14 22:55:31
阅读次数:
630
array_merge是我们用来合并数组使用最多的函数;下面就来深入解析array_merge的用法;第四点是个坑需注意;1:如果数组中有相同的字符串键名;则该键名后面的值覆盖前面的值;如果想让前面的值覆盖后面;则可以使用+号;$a=array(
‘a‘=>‘firsta‘,
‘b‘=>‘b‘
);
$b=array(
..
分类:
Web程序 时间:
2016-05-14 17:13:51
阅读次数:
217
Problem(Abstract) DataStage job run statistics (i.e. rows per second processed) do not update in DataStage Designer or Director clients. Diagnosing th ...
分类:
移动开发 时间:
2016-05-13 20:41:21
阅读次数:
426
1088 - Points in Segments PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Given n points (1 dimensional) and q segments, yo ...
分类:
其他好文 时间:
2016-05-13 13:32:25
阅读次数:
173
UIStoryboard *stryBoard=[UIStoryboard storyboardWithName:@"second" bundle:nil]; UIViewController *test=[stryBoard instantiateViewControllerWithIdentif ...
分类:
移动开发 时间:
2016-05-13 08:07:24
阅读次数:
158
Problem Description
the second year of the university somebody started a study on the romantic relations between the students. The relation “romantically involved” is defined between one girl and one...
分类:
编程语言 时间:
2016-05-13 01:20:21
阅读次数:
199
题目:合并两个递增排序链表,使新链表仍然按照递增排序。
方法一:
基于递归的方法,链表first和链表second各有m和n个结点,新链表的头结点为两个链表中头结点较小
的一个,当找到该头结点时(假设为first的头结点),仍需对first的m-1个结点和second的n个结点合并。
可以看出,子问题和原问题相同,因此可以利用递归解决。
代码如下:
/**
* Definit...
分类:
编程语言 时间:
2016-05-12 21:51:18
阅读次数:
173
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2016-05-12 21:32:15
阅读次数:
140
一。map
map就是从键(key)到值(value)的映射,重载了[]所以可以认为是高级版的数组,常用的一些操作如下:
头文件:#include
定义:map name key称为map的frist,value称为map的second。
初始化:name.clear();
二.题目
Ananagrams
Most crossword puzzl...
分类:
其他好文 时间:
2016-05-12 20:52:14
阅读次数:
203
1022 - Circle in Square
PDF (English)
Statistics
Forum
Time Limit: 0.5 second(s)
Memory Limit: 32 MB
A circle is placed perfectly into a square. The term p...
分类:
其他好文 时间:
2016-05-12 16:27:26
阅读次数:
374