码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
.Net学习笔记----2015-06-23(继承(里氏转换))
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;/*里氏转换 * 1,子类可以赋值给父类:如果一个地方需要一个父类作为参数,可...
分类:Web程序   时间:2015-06-24 00:44:33    阅读次数:139
【莫比乌斯反演】BZOJ2005 [NOI2010]能量采集
Description 求sigma gcd(x,y)*2-1,1 2 #include 3 #include 4 #define ll long long 5 using namespace std; 6 const int maxn=1e5+5; 7 8 int flag[maxn],pri.....
分类:其他好文   时间:2015-06-24 00:40:43    阅读次数:140
二路插入排序
#include using namespace std; typedef int SqList[8]; void Binpath_Insertsort(SqList &L,int count) { int length = count - 1; int L1[length] = { 0 }; L1[0] = L[1];//L中的第一...
分类:编程语言   时间:2015-06-23 23:17:47    阅读次数:209
八皇后
八皇后(可以扩展为N皇后问题) 每行每列每个对角线都不允许有两个或两个以上的皇后 回溯,递归求解 #include/// 八皇后 #include using namespace std; int c[10]; /// 第i行 列为a[i] int total; int n; /// 在一条主对角线上 则它们的 x-y相同 y=x+b /// 在一条负对角线上 则它们的 x+y相...
分类:其他好文   时间:2015-06-23 23:12:50    阅读次数:142
HDU 5274(树链剖分)
树链剖分第一题QAQ,纪念下 #pragma comment(linker, "/STACK:102400000,102400000") #include #include #include using namespace std; typedef long long ll; const ll mod = 1e9 + 7; const int maxn = 1e5 + 10; #d...
分类:其他好文   时间:2015-06-23 23:11:32    阅读次数:118
[LeetCode]91.Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total number of ways to...
分类:其他好文   时间:2015-06-23 23:10:22    阅读次数:196
C# 连接 Oracle 的几种方式
一:通过System.Data.OracleClient(需要安装Oracle客户端并配置tnsnames.ora)1. 添加命名空间System.Data.OracleClient引用2. using System.Data.OracleClient;3.string connString = "...
分类:数据库   时间:2015-06-23 22:58:33    阅读次数:170
实现百度搜索页面网页遍历
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
分类:Web程序   时间:2015-06-23 22:56:26    阅读次数:187
内存自动释放池
代码结构 函数名 参照了cocos2dx风格 pool.h #include?<iostream> #include"stack" #include?"vector" using?namespace?std; class?MangerPool; class?autoreleasePool; class?Ref { private: unsig...
分类:其他好文   时间:2015-06-23 21:50:26    阅读次数:125
16周【项目3-max带来的冲突】
问题描述: 【项目3-max带来的冲突】 分析下面程序出现的编译错误,给出解决的方案。 #include using namespace std; //定义函数模板 templateclass T> T max(T a, T b) { return (a>b)?a:b; } int main() { int x=2,y=6; double...
分类:其他好文   时间:2015-06-23 21:46:54    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!