select p.id comperitorId,p.compcorp competitorName,
sum(case when c.kindname = 'ATM' then c.num else 0 end) atm,
sum(case when c.kindname = 'CRS' then c.num else 0 end) crs,
sum(case when c.kindname...
分类:
数据库 时间:
2014-06-03 03:12:09
阅读次数:
211
$act=!empty($_GET['act']) ? trim($_GET['act']) : '';
switch($act) {
case 'adda':
$area['a_value'] = trim($_POST['a_value']);
$area['a_type']=3;
if(strpos($area['a_value'], "\n") === false) ...
分类:
Web程序 时间:
2014-06-03 00:46:17
阅读次数:
297
hibernate在写数据库配置文件时非常的不确定,必须进行必要的测试保证数据库结构的正确性。所以可以应用junit进行测试。
使用junit非常简单,eclipse只需要右键项目新建一个junit test case即可(填写类名和包名)。然后在对应位置写对应的代码运行测试即可。
下面给出一个常用的hibernate测试框架:
package com.atguigu.hibernate.e...
分类:
系统相关 时间:
2014-06-03 00:05:35
阅读次数:
449
3D人物造型When drawn animation frame by frame, the
images have a tendency to change, at least a little, but it increased by at
least movement, even his ca...
分类:
其他好文 时间:
2014-06-02 22:19:26
阅读次数:
379
VirtualBox 3.2.10 gives me the following error
message when booting Ubuntu 10.10:-iix4_smbus 0000.00.07.0: SMBus base address
uninitialized - upgrade ...
分类:
其他好文 时间:
2014-06-02 16:44:03
阅读次数:
234
【题目】
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return false.
【题意】
给定字符串s1,s2,s3, 判断s3是不是s1和s2中的字交叉组合...
分类:
其他好文 时间:
2014-06-02 10:58:24
阅读次数:
211
题目描述:
求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。
输入:
输入可能包含多个测试样例。
对于每个测试案例,输入为一个整数n(1<= n<=100000)。
输出:
对应每个测试案例,
输出1+2+3+…+n的值。
样例输入:...
分类:
其他好文 时间:
2014-06-02 10:36:56
阅读次数:
204
问题描述
求 1+2+ … +n ,要求不能使用乘除法、 for 、 while 、 if 、 else
、 switch 、 case 等关键字以及条件判断语句。
实际意义不大,题目涉及的知识还是不错的!
方法1
用构造函数求解。
#include
using namespace std;
class Plus
{
public:
Plu...
分类:
其他好文 时间:
2014-06-02 10:29:11
阅读次数:
208
##回顾比赛开始网络就一直在抽风,不知道宿舍网渣还是有人攻击服务器。刷了n遍n久刷出了题目。提交A小case的时候眼睁睁看着时间过去,却提交不上,这破网。最后A题B题还是解决了,C题扫了一眼,读都没读,就奔D题去了,因为我看到了熟悉的trie这个单词,加之看到小case只有9分,判断小case应该比...
分类:
其他好文 时间:
2014-06-02 07:57:30
阅读次数:
219
There are a few scenarios in which your activity is destroyed due to normal app behavior, such as when the user presses theBack button or your activity signals its own destruction
by calling finish(...
分类:
其他好文 时间:
2014-06-01 18:18:52
阅读次数:
550