#include
#include
#include >
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
ofstream ...
分类:
编程语言 时间:
2014-11-01 23:14:37
阅读次数:
277
一,mount系统调用--相关代码源码位置:kernel/fs/Namespace.c文件的do_mount()函数,[cpp]view plaincopylongdo_mount(char*dev_name,char*dir_name,char*type_page,unsignedlongflag...
分类:
其他好文 时间:
2014-11-01 23:12:44
阅读次数:
257
习题6-1,UVa673,Time:11.1 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 int main() { 9 int Case;10 ...
分类:
编程语言 时间:
2014-11-01 22:57:44
阅读次数:
175
ThereisnoActionmappedfornamespace/andactionnamelogin.-[unknownlocation]解决方式将struts.xml配置文件中的package标签中的namespace属性写成 namespace="";解释笔记struts2中是采用元素来管理...
分类:
其他好文 时间:
2014-11-01 21:49:06
阅读次数:
173
#include#include#includeusing namespace std;int map1[230][230], ans, n, m;int dir[4][2] = {0,1,0,-1,1,0,-1,0};int gauss(){ int i,j,k,t; for(i=0,...
分类:
其他好文 时间:
2014-11-01 21:47:58
阅读次数:
270
最大子数组问题方法一:暴力求解方法我们可以很容易地设计出一个暴力方法来求解本问题:简单地尝试没对可能的子数组,共有O(n2)种#includeusing namespace std;#define INT_MIN 0x80000000int main(){ int arr[10]={9,8,-...
分类:
编程语言 时间:
2014-11-01 21:45:16
阅读次数:
296
本篇体验在ASP.NET MVC下使用Knockout,将使用EF Code First创建数据库。最后让Knockout绑定一个Json对象。 创建一个领域模型。namespace MvcApplication3.Models
{ public class Product { public int...
分类:
Web程序 时间:
2014-11-01 20:28:08
阅读次数:
324
题意:给定n,m 2 #define M0(x) memset(x, 0, sizeof(x)) 3 #define repf(i, a, b) for(int i = (a); i = (b); --i) 5 using namespace std; 6 int U[303][303], D[30...
分类:
其他好文 时间:
2014-11-01 20:21:59
阅读次数:
299
HDU 3315 My Brute
题目链接
和HDU2835是一样的思路,利用把数字离散掉来多判断一个优先级
代码:
#include
#include
#include
#include
using namespace std;
const int MAXNODE = 105;
typedef int Type;
const Type INF = 0x3f3...
分类:
其他好文 时间:
2014-11-01 19:17:18
阅读次数:
191
题目地址:HDU 1824
这题可以把每队的两个队员看成一个,这样就是2-sat水题了。。。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define LL _...
分类:
其他好文 时间:
2014-11-01 19:16:14
阅读次数:
175