码迷,mamicode.com
首页 >  
搜索关键字:requestdispatcher forward include    ( 87212个结果
lfs遇到的一些问题--后续阶段
安装GPM-1.20.7,make install出错:prog/display-buttons.c:39:57: 致命错误:gpm.h:没有那个文件或目录 #include /* gpm information */ ...
分类:其他好文   时间:2014-04-30 19:17:10    阅读次数:497
c++访问mysql数据库
首先,把mysql目录下的include放到项目目录下,然后把libmysql.lib和libmysql.dll放到debug目录下。#include之前一定要加上#include否则会产生编译错误。#include "stdafx.h"#include #include "include\mysq...
分类:数据库   时间:2014-04-30 18:37:44    阅读次数:413
万年历制作
#include#includeusing namespace std;void printMonth(int year, int month);void printMonthTitle(int year, int month);void printMonthName(int month);void...
分类:其他好文   时间:2014-04-29 15:36:57    阅读次数:405
《Cracking the Coding Interview》——第17章:普通题——题目7
2014-04-28 23:28题目:给定一个数字,用英语把它读出来。解法:ZOJ上有相反的题目。如果我要用中文读书来呢?代码: 1 // 17.7 Read an integer in English. 2 #include 3 #include 4 using namespace s...
分类:其他好文   时间:2014-04-29 15:29:44    阅读次数:423
《Cracking the Coding Interview》——第18章:难题——题目1
2014-04-29 00:56题目:不用算数运算,完成加法。解法:那就位运算吧,用加法器的做法就可以了。代码: 1 // 18.1 add two numbers wihout using arithmetic operator. 2 #include 3 using namespace std....
分类:其他好文   时间:2014-04-29 14:58:53    阅读次数:383
《Cracking the Coding Interview》——第18章:难题——题目4
2014-04-29 01:05题目:数数从0到n总共有多少个数字‘2’?解法:数位动态规划,可以O(log10(n))时间内解决。代码: 1 // 18.4 Count the number of 2s from 0 to n. 2 #include 3 using namespace std;....
分类:其他好文   时间:2014-04-29 14:44:34    阅读次数:380
【HDOJ】2157 How many ways??
矩阵乘法,用DP做各种wa,后来发现原因了。 1 #include 2 #include 3 4 typedef struct { 5 int map[20][20]; 6 } matrix_st; 7 8 matrix_st res, org; 9 int n, m;10 11 m...
分类:其他好文   时间:2014-04-29 11:26:46    阅读次数:418
【ACM - 搜索模板】
【广搜模板】#include #include #include #include using namespace std;#define MAXX #define MAXYstruct Node{ int x,y; int step;};int n,m; //边界int dx[4...
分类:其他好文   时间:2014-04-29 11:14:46    阅读次数:334
Codeforces Round #243 (Div. 2) C. Sereja and Swaps
由于n比较小,直接暴力解决#include #include #include #include #include #includeusing namespace std;int main(){ int n,k; cin >> n >> k; vector a(n); for...
分类:其他好文   时间:2014-04-29 09:18:46    阅读次数:412
hdu 1.3.1 Moving Tables
这道题比较简单,就是用数组存取其路径。如101和102是对门,其过道号可以记为51. 1和2之间的为1. 今早突然收到操作系统停课的通知,哈哈 回来就做一下水题,开心 1 #include 2 #include 3 int main() 4 { 5 //freopen("input.txt"...
分类:其他好文   时间:2014-04-29 09:15:47    阅读次数:370
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!