码迷,mamicode.com
首页 >  
搜索关键字:xunsearch namespace    ( 41960个结果
[c++]this指针理解
#include using namespace std;/** * this 指针理解 */class A{ int i;public: void hello(){ couthello();}由于单独开发基于c++的编译器,c++程序翻译成c程序后在,在使用c语...
分类:编程语言   时间:2014-05-12 16:34:20    阅读次数:283
c++容器学习
转:http://blog.csdn.net/zhanghaodx082/article/details/179194011,using学习 两种方式:第一,完全引入命名空间y,如,using namespace std; 以后要用std中定义的符号就方便了,如cin>> ; 第二,只引入要用的符号...
分类:编程语言   时间:2014-05-12 16:28:15    阅读次数:340
连接Oracle数据库的OracleHelper.cs
using System;using System.Configuration;using System.Data;using System.Data.OracleClient;using System.Collections;namespace DBUtility { /// ///...
分类:数据库   时间:2014-05-12 16:09:43    阅读次数:493
HDU 3306 Another kind of Fibonacci(快速幂矩阵)
题目链接构造矩阵 看的题解,剩下的就是模板了,好久没写过了,注意取余。#include #include #include #include #include #include #include using namespace std;#define MOD 10007#define LL __in...
分类:其他好文   时间:2014-05-10 19:55:41    阅读次数:262
【HDOJ】1175 连连看
BFS。wa了一下午,原来是YES,写成了Yes。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef struct node_st{ 8 int x, y; 9 in...
分类:其他好文   时间:2014-05-06 08:48:16    阅读次数:274
hdu 1083 最大匹配
题意:N个学生 P 个课程 求最大匹配3 3 //学生 课程3 1 2 3 //课程1 匹配学生1 2 32 1 21 1典型的匹配没什么好说的#includeusing namespace std;int p,n;int map[500][500];int pre[500];int v[500.....
分类:其他好文   时间:2014-05-06 00:50:03    阅读次数:259
hdu 1058
题意:求素因子只有2 3 5 7的数zsd:5842 各种打表#include#includeusing namespace std;__int64 a[6000];int main(){ int n; memset(a,0,sizeof(a)); __int64 c=300000...
分类:其他好文   时间:2014-05-06 00:17:41    阅读次数:468
hdu 1003
题意 :求最大子段和 并且输出起始位置#includeusing namespace std;int main(){int N,n,a[100001],first,last; cin>>N; for(int i=1;i>n; for(int j=1;j>a[j]; int max=-...
分类:其他好文   时间:2014-05-06 00:12:25    阅读次数:301
HDU 4718 The LCIS on the Tree(树链剖分)
Problem DescriptionFor a sequence S1, S2, ... , SN, and a pair of integers (i, j), if 1 2 #include 3 #include 4 #include 5 using namespace std...
分类:其他好文   时间:2014-05-05 23:50:08    阅读次数:445
拷贝构造函数[c++]
拷贝构造函数何时会被调用?1. 对象以值传递的方式传入函数参数2.对象以值传递的方式从函数返回3.对象需要通过另外一个对象进行初始化下面我们来看代码://#include //using namespace std;//template //T:队列的类型,char,int,double,包括自己....
分类:编程语言   时间:2014-05-02 17:33:17    阅读次数:401
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!