码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
PHP代码实现强制换行
1. 简单的,只能分2行; 1 //$str:输入字符串; 2 //$num:超过多少个字符后进行换行(换行后每行的最大字符数) 3 function forceBlackString($str, $num){ 4 if(strlen($str)>$num){ 5 $temp...
分类:Web程序   时间:2015-11-25 21:48:33    阅读次数:180
UITextView的字数限制 及 添加自定义PlaceHolder
- (void)textViewDidChange:(UITextView *)textView{ NSString *temp=textView.text; //字数超过限制数量时,进行截取替换 if([[textView text] length] > _limitCharact...
分类:其他好文   时间:2015-11-25 13:06:21    阅读次数:100
Reverse Integer
1 var reverse = function(x) { 2 var isNeg = false, 3 res = 0, 4 temp = 0; 5 6 if (x 2147483648) {14 return 0;15...
分类:其他好文   时间:2015-11-25 11:01:56    阅读次数:127
Sql Server索引
先创建一个示例表temp对表中Name字段创建一个索引if exists(select name from sysindexes where name = 'suoyin')drop index temp.suoyin ---如果存在这个名字的索引,则删除这个索引create nonclustere...
分类:数据库   时间:2015-11-24 22:04:07    阅读次数:200
快速排序函数代码
void quickSort( int left, int right, int *arr){ int i, j, temp; if ( left >= right ) return; temp = arr[left]; i = left; j = right; while ( i != j ) {...
分类:编程语言   时间:2015-11-24 20:24:51    阅读次数:124
冒泡排序
$a_data[$j + 1]) { $temp = $a_data[$j]; $a_data[$j] = $a_data[$j + 1]; $a_data[$j + 1] = $...
分类:编程语言   时间:2015-11-24 14:45:40    阅读次数:160
用数组实现的最大堆(C++)
1 #include 2 #include 3 4 using namespace std; 5 void swap(int* a,int pos,int j){ 6 int temp=a[pos]; 7 a[pos]=a[j]; 8 a[j]=temp; 9 }10...
分类:编程语言   时间:2015-11-23 21:46:30    阅读次数:277
怎样把windows中安装的程序列出来?
症状/问题我怎样把windows中安装的程序信息输出到一个文本文件中?解决方法使用 windows 操作系统中的命令:wmic就可以做到。下面的命令就可以把系统中安装的程序都输出到文件ProgramList.txt 中:wmic /output:C:\temp\ProgramList.txt pro...
分类:Windows程序   时间:2015-11-23 16:52:03    阅读次数:188
QuickSort
/* * quciksort */ public static void quickSort(Integer[] arr,Integer begin, Integer end) { Integer temp = arr[begin]; ...
分类:其他好文   时间:2015-11-23 16:40:19    阅读次数:102
jni c语言使用指针交换两个值
#include //创建传递指针的方法 void swap(int* pi,int*pj){ int temp=*pi; *pi=*pj; *pj=temp; }main(){ int i=5; int j=7; //之前 ...
分类:编程语言   时间:2015-11-21 19:55:10    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!