#includeusing namespace std;//插入排序 void insert_sort(int *array,int n){ for(int i=1;i<n;i++) { int k=i-1; int temp =array[i]; ...
分类:
编程语言 时间:
2014-10-12 17:30:58
阅读次数:
185
一直以为自己对大端小端的区别已经掌握得很清楚了,没想到在实际应用中还是会犯糊涂,这里记录一下,同样的错误不能再犯了。uint32_t temp = 0x01020304;大端:&temp地址处存放的是高字节,即((uint8_t *)&temp)[0] = 0x01;小端:&temp地址处存放的是低...
分类:
其他好文 时间:
2014-10-11 20:27:16
阅读次数:
195
9i下--多行with temp as(select '6001600301,6001600302,6001600303,6001600304' text from dualunionselect '7001600301,7001600302,7001600303' text from dual)s...
分类:
其他好文 时间:
2014-10-11 19:55:26
阅读次数:
246
SELECT DISTINCT * INTO #temp FROM grade;
DROP TABLE grade;
SELECT * INTO grade FROM #temp;
DROP TABLE #temp;
SELECT DISTINCT * INTO #temp FROM grade;
DROP TABLE grade;
SELECT * INTO grade FROM #temp;
DROP TABLE #temp;...
分类:
数据库 时间:
2014-10-11 19:53:06
阅读次数:
191
1012 最大公约数和最小公倍数问题题目描述 Description输入二个正整数x0,y0(2using namespace std;#define MAX 10000int LCM(int min, int max, int ev){ int temp; while(min!=0) ...
分类:
其他好文 时间:
2014-10-11 17:31:05
阅读次数:
276
文章出处:http://blog.163.com/weidaolan666@126/blog/static/49479943201171710305298/ 感谢作者的分享3.1 with基础 使用WITH AS 语句可以为一个子查询语句块定义一个名称,使用这个子查询名称可以在查询语句的很多地...
分类:
数据库 时间:
2014-10-11 16:54:15
阅读次数:
299
Host Ubuntu系统:sudo ifconfig eth0 192.168.1.2打补丁(补丁和内核在同一目录下/home/chris/temp):cd /home/chris/temp/linux-3.0patch -p1 < ../linux-3.0-s3c2440.patch开发板u-b...
分类:
系统相关 时间:
2014-10-11 16:52:15
阅读次数:
258
with temp as( select 'A01' nation ,1 as S1,2 as S2, 3 as S3 from dual union all select 'A02' nation ,null as S1,5 as S2, 6 as S3 from dual)select ...
分类:
数据库 时间:
2014-10-11 01:12:44
阅读次数:
230
注意:图示使用的地址只是假设的,并不是真正的内存地址,只是说明原理上次说到的是修改基本类型的变量,这次来说修改指针变量的值#include void change(int *a){ int temp = 555; a = &temp;}int main(){ int i = 5...
分类:
其他好文 时间:
2014-10-11 00:43:35
阅读次数:
250
#define LOCAL#include#includeusing namespace std;const int maxSize=10;void REV(int R[],int b,int e){ int i=b,j=e,temp; while(i>R[i]; } cin...
分类:
其他好文 时间:
2014-10-11 00:42:44
阅读次数:
203