1 #include 2 #include 3 using namespace std; 4
const int Max = 100000; 5 int num[Max]; 6 int find_[Max]; 7 bool found[Max]; 8
int pos[Max] = { 9 ...
分类:
其他好文 时间:
2014-06-07 03:49:29
阅读次数:
250
取出某一列不重复数据的ID表A有ID,BID,ITime三列BID可能会有重复的现在要从A表根据ITime降序排序取出ID来,且如果BID重复就只取第一条数据的ID应该如何实现?------解决方案--------------------如果id是递增的select
min(id),BID,max(...
分类:
数据库 时间:
2014-06-07 03:28:49
阅读次数:
324
mysql too many open
connections问题解决方法。原文参考:http://www.jbxue.com/db/10068.html原因主要是:max_connections配置问题导致,它必须在[mysqld]下面才会生效。曾经以为在my.cnf写入max_connectio...
分类:
数据库 时间:
2014-05-30 05:22:53
阅读次数:
319
// 获取文件运行路径void GetAppFilePath(const CString&
strProjectName){ TCHAR szFileName[MAX_PATH]; HMODULE hModule =
GetModuleHandle(strProjectName); ...
分类:
编程语言 时间:
2014-05-30 04:38:22
阅读次数:
367
#include "stdafx.h"#include #include #pragma
comment(lib, "ws2_32.lib")#pragma comment(lib, "urlmon.lib") #define MAX_SIZE
1024 int GetLocalIP();int G...
分类:
编程语言 时间:
2014-05-30 04:22:06
阅读次数:
273
--聚合函数:返回一个值,对表中所有行进行统计,忽略NULL值--sum:求和(只能数字类型)select
sum(age) from stuInfo--avg:平均值(只能数字类型)select avg(age) from
stuInfo--max:最大值(只能数字类型或者是字符串)select ...
分类:
数据库 时间:
2014-05-30 02:49:16
阅读次数:
289
先排序预处理,后01背包。 1 #include 2 #include 3 #include 4 5
#define MAX(a, b) (a>b) ? a:b 6 7 int dp[5000]; 8 9 typedef struct {10 int p,
q, v;11 } s...
分类:
其他好文 时间:
2014-05-29 11:40:04
阅读次数:
277
感谢 微信平台: 一天一道算法题 ----- 大家没事都可以去关注他 ---
不是做广告的----题目大意: 给你一个长度为n的整数序列A1,A2,……,An,找出两个整数Ai和Aj(i 2 #include 3 #include
//这边 要是定义了这个头文件 直接用它里面的min max函数 ....
分类:
其他好文 时间:
2014-05-29 02:57:47
阅读次数:
230
/// /// 文本长度判断 /// public static bool
TextLength(int min, int max, string s) { if (s.Length max) { return false; }
else { return true; } } /// ///...
分类:
Web程序 时间:
2014-05-25 23:09:29
阅读次数:
349
简单01背包 1 #include 2 #include 3 int max(int a,int b)
4 { 5 return a>b?a:b; 6 } 7 int main() 8 { 9 int t;10 int n,v;11 int
f[1100],v...
分类:
其他好文 时间:
2014-05-25 13:55:14
阅读次数:
196