码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
csharp: Export or Import excel using MyXls
excel 2003 (效果不太理想)using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;...
分类:其他好文   时间:2015-07-31 01:17:17    阅读次数:162
hdu 4023 2011上海赛区网络赛C 贪心+模拟
以为是贪心,结果不是,2333贪心最后对自己绝对有利的情况点我 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define...
分类:其他好文   时间:2015-07-31 01:11:07    阅读次数:102
【递归】POJ2965-The Pilots Brothers' refrigerator
和POJ1753的方法一致,唯一不同的是需要记录路径,只需添加一个全集变量的path路径即可。 1 #include 2 #include 3 using namespace std; 4 const int INF=100000; 5 int map[4][4]; 6 int path[4][4]...
分类:其他好文   时间:2015-07-31 00:59:12    阅读次数:175
c#代码01--控制台的简单输入与输出及日期的格式输出
/*使用ReadLine()完成控制台的输入输出内容*/using System;namespace Test{ class Test1 { static void Main(string[] args){ Console.Write("请输入:");//输出 请输入 且不换行 strin...
分类:Windows程序   时间:2015-07-31 00:58:55    阅读次数:233
实例讲解C++中lambda表达式
测试环境 windows 7  vs2013 C++ 11中的Lambda表达式用于定义并创建匿名的函数对象,以简化编程工作。例如GPU编程中常用到。 一个最简单的lamada表达式程序 #include #include using namespace std; int main() {     function  fun = [](){cout << "hello la...
分类:编程语言   时间:2015-07-30 23:24:39    阅读次数:200
Excel操作类
using System; using System.IO; using System.Data; using System.Collections; using System.Data.OleDb; /// /// Excel操作类 /// public c...
分类:其他好文   时间:2015-07-30 23:17:45    阅读次数:133
调用SMTP发送有附件的邮件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:其他好文   时间:2015-07-30 23:04:14    阅读次数:91
BZOJ 2820: YY的GCD( 莫比乌斯反演 )
求 ∑ gcd(x, y) = p ( p 是质数, 1 using namespace std;typedef long long ll;const int maxn = 10000009;bool check[maxn];int prime[maxn], N = 0, mu[maxn], f[m...
分类:其他好文   时间:2015-07-30 23:01:46    阅读次数:129
循环多少次?
Description我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于循环的部分。例如,如果代码中出现for(i=1;i 2 #include 3 #include 4 using namespace std; 5 int dp[2003][2003]; 6 void set() 7.....
分类:其他好文   时间:2015-07-30 23:01:45    阅读次数:115
spoj 1043 线段树
线段树在解决区间合并问题上还是很强力的,每个结点维护三个值:maxl, maxr, maxn,然后合并操作见pushup函数。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 50001; 7...
分类:其他好文   时间:2015-07-30 22:57:38    阅读次数:116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!