码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
poj 3254 Corn Fields
http://poj.org/problem?id=3254 1 #include 2 #include 3 #include 4 #define maxn 1000 5 using namespace std; 6 const int mod= 100000000; 7 8 int dp[...
分类:其他好文   时间:2014-06-18 23:48:54    阅读次数:374
HDU 2235
这题说的是给了一个 平面 然后又很多的长方体柱子 问这个 容器的 容积是什么,排序后 然后 进行 并查集 判断是否 可以有比他小的高度依靠他算体积,通过并查集去判断他的子集的个数。#include #include #include #include using namespace std;cons...
分类:其他好文   时间:2014-06-18 23:35:37    阅读次数:217
C#限制程序只能运行一個实例 (防多开)
//方法一:只禁止多个进程运行using System;using System.Collections.Generic;using System.Windows.Forms;namespace DuoYeMianIE{ static class Program { ///...
分类:其他好文   时间:2014-06-18 23:22:13    阅读次数:216
MVC提交时验证
第一种@using (Html.BeginForm("ProdPromotionEdit", "Product", FormMethod.Post, new { onsubmit = "return check()" }))第二种第三种jquery$("#xxxform").submit(funct...
分类:Web程序   时间:2014-06-18 22:41:12    阅读次数:295
Entity Framework 学习第一天 续
改写第一天的增删改查方法,观察增删改查的本质 1 using System; 2 using System.Collections.Generic; 3 using System.Data.Entity.Infrastructure; 4 using System.Linq; 5 using Sys...
分类:其他好文   时间:2014-06-17 00:30:26    阅读次数:272
C#遍历文件夹(包括子目录)下的所有文件
前提现在一个分区下建立bb.txt文件。 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6...
分类:其他好文   时间:2014-06-17 00:00:48    阅读次数:228
C#操作Advantage Database Server
简单Demo:引用D:\Program Files (x86)\Advantage 11.10\ado.net\2.0\Advantage.Data.Provider.dllusing System;using Advantage.Data.Provider; namespace ADSDemo{....
分类:数据库   时间:2014-06-16 23:43:19    阅读次数:399
winform接收全局的快捷键
public class NativeWIN32 { public NativeWIN32() { } /* ------- using WIN32 Windows API in a C# application ------- */ [...
分类:Windows程序   时间:2014-06-16 23:42:15    阅读次数:392
Geeks 一般二叉树的LCA
不是BST,那么搜索两节点的LCA就复杂点了,因为节点是无序的。 下面是两种方法,都写进一个类里面了。 当然需要重复搜索的时候,可以使用线段树及多种方法加速搜索。 #include #include using namespace std; class LCANormalTree { struct Node { int key; Node *left, *right;...
分类:其他好文   时间:2014-06-16 20:20:04    阅读次数:234
Divide Two Integers
题目 Divide two integers without using multiplication, division and mod operator. 方法 将除数倍加,直到大于被除数。 public int divide(int dividend, int divisor) { int flag = 0; if...
分类:其他好文   时间:2014-06-16 19:08:08    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!