码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
wpf TabControl控件的用法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Wind...
分类:Windows程序   时间:2015-07-01 15:38:05    阅读次数:278
poj 1021 2D-Nim 模拟
题意: 给两个平面,每个平面上有一些点,相邻的点可构成点集,为两个平面内的点集是够都对应相似。两个点集相似是指经过对称或旋转或平移后相等。 分析: 直接模拟判断。 代码: //poj 1021 //sep9 #include #include #include using namespace std; int w,h,n; int g[128][128]; int vis[128]...
分类:其他好文   时间:2015-07-01 14:18:49    阅读次数:109
连通分量的求解 Tarjan算法的拓展
问题描述: 给出一张连通的无向图  输出图中的所有连通分量 代码: #include #include #include #define maxn 1050 using namespace std; struct node{ int from,to,next,vis; int equall(node b) { if((from...
分类:编程语言   时间:2015-07-01 14:18:21    阅读次数:167
数据库百万条添加的方法
思路:.net 创建临时表,然后用SqlBulkCopy把临时表一次性复制的真正的数据表中;代码如下:protected void Button1_Click(object sender, EventArgs e){ using (SqlConnection connection = new ...
分类:数据库   时间:2015-07-01 14:01:32    阅读次数:152
C++临时匿名对象
匿名对象:临时的对象,一般都是在构造完就被释放掉了(有特殊情况,返回值优化)1. 返回值优化:若是函数返回的匿名对象返回时候有同类型的新对象接上,则该匿名对象被转化为新对象。#include "iostream"using namespace std;class A{public: A (in...
分类:编程语言   时间:2015-07-01 13:54:45    阅读次数:207
word 操作
需要引入类库 Microsoft.Office.Interop.Wordusing System;using System.Collections.Generic;using System.Text;using Microsoft.Office.Interop.Word;using System.I...
分类:其他好文   时间:2015-07-01 13:42:47    阅读次数:122
.net/c#连接sqlserver
Webconfig代码 数据库类代码 using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; usin...
分类:数据库   时间:2015-07-01 13:40:49    阅读次数:127
Stratgy策略模式
#include using namespace std;class Base { public: void DoWhat() { this->Printf1(); this->Printf2(); } virtual void Printf1() = 0; virtual void Printf2() =...
分类:其他好文   时间:2015-07-01 12:26:50    阅读次数:110
poj 2960 S-Nim nim博弈grundy值计算法入门
题意: 给k堆石子,两人轮流向某一堆中拿,拿的个数要从给定的一个集合中取,没石子拿的输,问先手必胜还是必败。 分析: grundy值计算法的入门题。 代码: //poj 2960 //sep9 #include #include using namespace std; int s[128]; int grundy[10024]; int maxx; int num; int get...
分类:编程语言   时间:2015-07-01 12:25:55    阅读次数:164
IAR EWAR 内联汇编 Error[Og010], Error [Og005], Error [Og006]
Error [Og005] + [Og006] when using inline assemblerEW targets:430, ARM, AVREW component:C/C++ compilerLast update:April 3, 2013Problem:When compiling ...
分类:其他好文   时间:2015-07-01 11:44:27    阅读次数:627
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!