码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
C++派生类成员访问作用域
#include using namespace std;class CFatherSum //父类Sum{public: int m_iVar; //公用数据成员 void money(){coutCFatherObam::getPri(); ...
分类:编程语言   时间:2015-04-28 20:58:12    阅读次数:200
T4模板批量生成代码文件
1 2 3 4 5 6 7 8 9 // 导入MultipleOutputHelper.ttinclude文件10 11 12 16 17 18 using System;19 using System.Collections.Generic;20 using System.L...
分类:其他好文   时间:2015-04-28 20:35:19    阅读次数:236
NPOI-Excel系列-1000.创建一个标准的Excel文件
1 using NPOI.HSSF.UserModel; 2 using Microsoft.VisualStudio.TestTools.UnitTesting; 3 using System.IO; 4 namespace NPOI.Sample1 5 { 6 /// 7 /...
分类:其他好文   时间:2015-04-28 20:32:43    阅读次数:108
NPOI-Excel系列-1002.创建带有Document Summary Information和Summary Information的Excel文件
1. 1 using NPOI.HSSF.UserModel; 2 using NPOI.HPSF; 3 using NPOI.POIFS.FileSystem; 4 using Microsoft.VisualStudio.TestTools.UnitTesting; 5 using System...
分类:其他好文   时间:2015-04-28 20:24:41    阅读次数:239
【c++程序】分数的约分
#include using namespace std; class Fract { int n; int d; public: Fract():n(0),d(1){}; Fract(int an,int ad):n(an),d(ad) { reduce(); } void reduce() { if(n<0){d=-d;n=-n;} if(d==0){cout<<...
分类:编程语言   时间:2015-04-28 18:38:29    阅读次数:295
HDU ACM 1532 Drainage Ditches->网络最大流模版题(EK算法实践)
分析:最大流的入门题,BFS寻找增广路,找到则更新流量,直到找不到增广路为止。 #include #include using namespace std; #define N 202 #define MAX 0x7fffffff; class Max_Flow_EK { public: Max_Flow_EK(){} ~Max_Flow_EK(){} int Run(int n,in...
分类:编程语言   时间:2015-04-28 18:35:06    阅读次数:187
第四周项目-2
#include using namespace std; class CFraction { private: int nume;  // 分子   int deno;  // 分母   void simplify();            //化简(使分子分母没有公因子)  public: CFraction(int nu = 0, int de = 1);   //构造函...
分类:其他好文   时间:2015-04-28 18:31:08    阅读次数:119
C# 调用百度地图web服务API
1.关于百度提供的接口中的方法的实用,这里有很多官方提供的DEMO(http://developer.baidu.com/map/jshome.htm). 2.为了能与JS交互,首先引入using System.Security.Permissions;                 在命名空间里添加: [PermissionSet(SecurityAction.Deman...
分类:Windows程序   时间:2015-04-28 18:27:59    阅读次数:685
STL案例代码
//1.指针迭代器 #include  #include  using namespace std;   #define SIZE 100 int iarray[SIZE];   int main() { iarray[20] = 50; int* ip = find(iarray, iarray + SIZE, 50); if (ip == iarray + SIZE)/...
分类:其他好文   时间:2015-04-28 18:25:08    阅读次数:154
暴力枚举 UVA 10976 Fractions Again?!
题目传送门 1 /* 2 x>=y, 1/x 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 using namespace std;14 1...
分类:其他好文   时间:2015-04-28 18:18:44    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!