码迷,mamicode.com
首页 >  
搜索关键字:requestdispatcher forward include    ( 87212个结果
14-4-28
$sql = "select * from student ";获取全部数据isset()判断$myaql_connect连接数据库$myaql_close结束连接数据库include(""."")连接页面mysql_query()向与指定的连接标识符关联的服务器中的当前活动数据库发送一条查询mys...
分类:其他好文   时间:2014-04-30 18:09:17    阅读次数:396
DMP文件的生成和使用
1、生成dmp的程序#include#pragmacomment(lib, "dbghelp.lib")//设置异常处理回调函数SetUnhandledExceptionFilter(UnhandledExceptionFilter);//异常处理代码//EXCEPTION_EXECUTE_HAND...
分类:其他好文   时间:2014-04-30 17:14:57    阅读次数:1111
矩阵转置
#includemain(){ int a[2][3],b[3][2]; int i,j; //input a for(i=0;i<2;i++) { for(j=0;j<3;j++) { scanf("%d",&a[i][j]); } } // zhuanzhi b for(j=0...
分类:其他好文   时间:2014-04-30 16:04:17    阅读次数:261
背包问题
背包问题时间限制:3000ms | 内存限制:65535KB难度:3描述现在有很多物品(它们是可以分割的),我们知道它们每个物品的单位重量的价值v和重量w(1#include#include#include #include#includeusing namespace std;struct ba....
分类:其他好文   时间:2014-04-30 15:46:29    阅读次数:443
WebMatrix Database.Open… Close() and Dispose()
ASP.NET Web Pages framework examples of the Database helper do not include calls to Close or Dispose because the framework itself is designed to call ...
分类:数据库   时间:2014-04-30 14:08:51    阅读次数:629
char*,string,float,int 转换
char* 转 float:double atof (const char* str);/* atof example: sine calculator */#include /* printf, fgets */#include /* atof */#include ...
分类:其他好文   时间:2014-04-30 13:44:13    阅读次数:410
【转载】EmptyWorkingSet 程序运行内存整清理
网络上找了很多关于内存整理的文章,不外乎都是使用EmptyWorkingSet来实现。就如下面这段代码。#include "stdafx.h"#include #include #include #pragma comment (lib,"psapi.lib")BOOL EmptyAllSet(){...
分类:其他好文   时间:2014-04-29 17:15:46    阅读次数:357
Codeforces Round #243 (Div. 2) C. Sereja and Swaps(优先队列 暴力)
题目题意:求任意连续序列的最大值,这个连续序列可以和其他的 值交换k次,求最大值思路:暴力枚举所有的连续序列。没做对是因为 首先没有认真读题,没看清交换,然后,以为是dp或者贪心用了一下贪心,各种bug不对。这次用了一下优先队列,以前用的不多,看这个博客又学了一下AC代码: 1 #include ....
分类:其他好文   时间:2014-04-29 17:14:46    阅读次数:432
【HDOJ】2473 Junk-Mail Filter
并查集删除结点,方法是构建虚拟点,做映射。 1 #include 2 #include 3 4 #define MAXNUM 1000050 5 6 int bin[MAXNUM], assist[MAXNUM]; 7 char visit[MAXNUM]; 8 int n, ext; 9 ...
分类:其他好文   时间:2014-04-29 17:12:47    阅读次数:385
九的余数
#include#include#include#include #includeusing namespace std;char c[1000005];int main(int argc, char* argv[]){ int n; scanf("%d", &n); while(n--) { .....
分类:其他好文   时间:2014-04-29 16:31:46    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!