1.php str_replace函数:str_replace()
函数使用一个字符串替换字符串中的另一些字符。str_replace(find,replace,string,count)find:必须,表示被查找的值replace:必须,替换别查找的值的值string:必须,被查找的字符串coun...
分类:
Web程序 时间:
2014-05-26 19:38:05
阅读次数:
292
修改php.ini就可以了。1. 在PHP.ini中搜索关键字 :
allow_call_time_pass_reference 没有的自行建立。2. 将 Off 改成 On ,Web
Server重起就OK了~allow_call_time_pass_reference = Off 变成 allo...
分类:
Web程序 时间:
2014-05-25 19:40:31
阅读次数:
265
1、Activity的生命周期2、Service的生命周期3、Service和Activity在同一个线程吗默认情况下是在同一个主线程中。但可以通过清单中android:process属性配置不同的进程。4、java中的soft
reference是个什么东西 如果一个对象只具有软引用,则内存空间....
分类:
移动开发 时间:
2014-05-25 19:17:40
阅读次数:
336
$arr = array(3,55,45,2,67,76,6.7,-65,85,4);function
quickSort($arr){ if (count($arr) ";print_r($new_arr);exit;
分类:
Web程序 时间:
2014-05-25 19:13:17
阅读次数:
233
//顺序查找(数组里查找某个元素)$arr =
array(3,55,45,2,67,76,6.7,-65,85,4);function seq_sch($array, $k){ for($i=0;
$i<count($array); $i++){ if($array[$i]==...
分类:
Web程序 时间:
2014-05-25 19:11:16
阅读次数:
285
我们经常会用到平年和闰年对应的天数,直接对数组静态初始化固然可以,但是手写起来很容易写错,所以用个函数得对应天数。
完整代码:
#include
using namespace std;
int count = 0;
int a[2][12];
void init_arr(int a[2][12])
{
for(int i=0;i<13;i++)
{
if(i==1||i==3||i=...
分类:
其他好文 时间:
2014-05-25 18:16:39
阅读次数:
258
经验:令赋值(assignment)操作符返回一个reference to *this --》 这样可以实现级联赋值...
分类:
编程语言 时间:
2014-05-25 13:33:44
阅读次数:
286
三种情况$array1=array("item1","item2","item3");1.清空数组的value保留keyforeach($array1as$key=>$value){
unset($array1[$value]);
}这时count($array1)的结果为32.将数组重新定义为空数组$array1=array();3.删除数组变量,将资源完全释放unset($array1);
分类:
Web程序 时间:
2014-05-25 08:15:29
阅读次数:
389
哈希表简单实现,练个手
#include "stdafx.h"
#include
using namespace std;
#define HASHSIZE 12
typedef struct HashTable
{
int *elem;
int count;
}HashTable;
int m = 0;
void Print(HashTable* ...
分类:
其他好文 时间:
2014-05-25 07:02:06
阅读次数:
169
Android Procedural Animation: : XML, Concepts and Optimization Procedural Animation Concepts: Tweens and Interpolators Interpolator:http://developer.android.com/reference/android/animation/TimeInte...
分类:
移动开发 时间:
2014-05-25 04:28:40
阅读次数:
318