求出两个数的最大公约数 1 int foo(int v1, int v2) 2 { 3
while(v2) { 4 int temp = v2; 5 v2 = v1 % v2; 6 v1 = temp; 7 } 8 9 re...
分类:
其他好文 时间:
2014-04-30 04:42:13
阅读次数:
404
Http定义了与服务器交互的不同方法,最基本的方法有4种,分别是GET,POST,PUT,DELETE。URL全称是资源描述符,我们可以这样认为:一个URL地址,它用于描述一个网络上的资源,而HTTP中的GET,POST,PUT,DELETE就对应着对这个资源的查,改,增,删4个操作。到这里,大家....
分类:
其他好文 时间:
2014-04-30 02:37:02
阅读次数:
181589
16进制加法1 #include2 int main()3 {4 int a,b;5
while(scanf("%x %x",&a,&b)!=EOF)6 {7 printf("%d\n",a+b); 8 } 9 }
分类:
其他好文 时间:
2014-04-30 02:19:33
阅读次数:
357
friend numbers = 2^x + 3^y -1 1 #include 2 int
main() 3 { 4 __int64 a; 5 while(scanf("%I64d",&a)!=EOF) 6 { 7 if(!a) 8 {
9...
分类:
其他好文 时间:
2014-04-30 01:43:36
阅读次数:
322
1.MVC 和 JSP Model 2 ** a.:M-Model 模型
包含两部分:业务数据和业务处理逻辑 b.V-View 视图:视图(View)的职责是负责显示界面和用户交互(收集用户信息)。 c.C-Controller
控制器 项目中写的ActionServlet。-----------....
分类:
其他好文 时间:
2014-04-29 23:25:04
阅读次数:
648
事件:描述发生了什么的对象。 存在各种不同类型的事件类用来描述各种类型的用户交互。
事件源:事件的产生器。 事件处理器:接收事件、解释事件并处理用户交互的方法。
比如在Button组件上点击鼠标会产生以这个Button为源的一个ActionEvent,这个ActionEvent实例是一个对象...
分类:
其他好文 时间:
2014-04-28 11:02:45
阅读次数:
609
java中的Switch case 语句 在Switch语句中有4个关键字:switch,case
break,default.
在switch(变量),变量只能是整型或者字符型,程序先读出这个变量的值,然后在各个"case"里查找哪个值和这个变量相等,如果相等,则条件成立,程序执行相应...
分类:
编程语言 时间:
2014-04-28 01:23:56
阅读次数:
643
oracle认为 null 最大。 升序排列,默认情况下,null值排后面。
降序排序,默认情况下,null值排前面。(1)用nvl函数或decode函数将null转换为一特定值 替换null:
nvl(arg,value)(2)用case语法将null转换为一特定值: order by (ca.....
分类:
其他好文 时间:
2014-04-28 01:06:19
阅读次数:
554
交互式shell和非交互式shell、登录shell和非登录shell的区别。首先,这是两个不同的维度来划分的,一个是是否交互式,另一个是是否登录。交互式shell和非交互式shell(interactive
shell and non-interactive shell)交互式模式就是在终端上执行...
分类:
其他好文 时间:
2014-04-28 00:05:33
阅读次数:
210362
#include using namespace std;int fun(int a){
if(a==1) return 0; for(int i=2;i>M; while(M--) { int i,sum=0; cout>N; ...
分类:
其他好文 时间:
2014-04-27 22:06:54
阅读次数:
578