1、用sort对结构体中字符串进行二级排序
#include
#include
using namespace std;
struct s
{
int d;
char c[10];
}ss[15];
bool cmp(s a,s b)
{
if(strcmp(a.c,b.c)!=0)
...
分类:
其他好文 时间:
2014-08-11 06:19:01
阅读次数:
171
accept#include#include#include#includeusing namespace std;char ss[20005][25];int num[20005];int n,m;int cmp(const void * a,const void * b){ int i,a...
分类:
其他好文 时间:
2014-08-10 18:25:40
阅读次数:
416
int pow_mod(int a,int b,int n)
{
int ans ;
if(b == 0)
return 1 ;
ans = pow_mod(a,b/2,n);
ans = ans * ans % n ;
if( b%2 )
ans = ans*a % n ;
return ans ;
}...
分类:
其他好文 时间:
2014-08-10 13:04:30
阅读次数:
196
Spring更新到3.0之后,其MVC框架加入了一个非常不错的东西——那就是REST。它的开放式特性,与Spring的无缝集成,以及Spring框架的优秀表现,使得现在很多公司将其作为新的系统开发框架。大象根据实际的项目经验,以之前SSH2例子为基础,对其进行一次大改造,详细的为大家讲解如何实现SS...
分类:
编程语言 时间:
2014-08-10 12:37:40
阅读次数:
290
1.call和ret指令都是转移指令,它们都修改IP的值,或同时修改CS和IP的值。它们经常共同用语实现子程序的设计。2.ret指令用栈中的数据,修改IP的内容,从而实现近转移。3.retf指令用栈中的数据,修改CS和IP的内容,从而实现远转移。4.CPU执行ret指令时,(1)(IP)=((ss)...
分类:
其他好文 时间:
2014-08-10 01:33:39
阅读次数:
496
insert into tablerestore select * from tablerestore as of timestamp to_Date('2014-8-8 15:00:00','yyyy-mm-dd hh24:mi:ss') 参数解释:tablerestore 要恢复数据的表后面的时间是恢复截止到某个点的数据...
分类:
数据库 时间:
2014-08-08 21:33:36
阅读次数:
324
ORACLE字符数字日期之间转化Java代码 24 小时的形式显示出来要用 HH24 select to_char(sysdate,'yyyy-MM-dd HH24:mi:ss') from dual; select to_date('2005-01-01 13:14:20','yyyy-MM-dd...
分类:
数据库 时间:
2014-08-08 15:55:56
阅读次数:
380
有天重建一段代码时,遇到了循环右移指令,不知道用C语言怎么实现,后来得到小伟指点,感谢。。me 15:56:38004BD2C9 8B55 F8 MOV EDX,DWORD PTR SS:[EBP-8]004BD2CC D1CA ROR EDX,1004BD2CE ...
分类:
编程语言 时间:
2014-08-08 15:53:06
阅读次数:
239
1.为了描述上的简洁,在以后的课程中,将使用两个描述性的符号reg来表示一个寄存器,用sreg表示一个段寄存器。reg的集合包括:ax,bx,cx,dx,ah,al,bh,bl,ch,cl,dh,dl,sp,bp,si,di;sreg的集合包括:ds,ss,cs,es.8086CPU处理数据的两个基...
分类:
其他好文 时间:
2014-08-08 15:35:26
阅读次数:
295
1.简单的linq语法 //1 var ss = from r in db.Am_recProScheme select r; //2 var ss1 = db.Am_re...
分类:
其他好文 时间:
2014-08-08 11:50:35
阅读次数:
197