码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
D的小 L
?? /*全排列的简单举例*/ #include #include #include #include using namespace std; int main() {  int t;  scanf("%d",&t);  while(t--)  {   int n;   int a[100];   memset(a,0,sizeof(a));   scanf("%...
分类:其他好文   时间:2015-07-30 17:09:39    阅读次数:100
hdu 4027 2011上海赛区网络赛 线段树 成段平方根 ***
不能直接使用成段增减的那种,因为一段和的平方根不等于平方根的和,直接记录是否为1,是1就不需要更新了 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std;...
分类:其他好文   时间:2015-07-30 16:52:11    阅读次数:148
csharp: Export or Import excel using NPOI
excel 2003:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Sy...
分类:其他好文   时间:2015-07-30 16:42:02    阅读次数:131
Fatal error Using $this when not in object context in
大致意思是 $this 没有上下文,原因是没有对此类进行实例化。出现此错误的原因是:在FileCommand.php中使用 $this->方法/属性。$this 不是不可以用,而是要看情况用。在实例化的 类中使用 $this是可以的class Person{ private var $...
分类:其他好文   时间:2015-07-30 13:28:20    阅读次数:144
C#线程间通讯
using System;using System.Text;using System.Windows.Forms;using System.Threading;namespace 线程间通讯{public partial class Form1 : Form{public Form1(){Init...
分类:编程语言   时间:2015-07-30 13:26:59    阅读次数:155
C#初级知识点整理及VS的简单使用
C#预处理器指令#define #undef 声明一个不需赋值的变量注意的一点事它必须放到using 上面,如#define TESTusing System.xxx;public class Task{ public Task() { }}#region #endregion...
分类:Windows程序   时间:2015-07-30 13:06:05    阅读次数:199
二叉树的基本运算
1 #include 2 #include 3 using namespace std; 4 #define datatype char 5 typedef struct node 6 { 7 datatype data; 8 struct node *lchi...
分类:其他好文   时间:2015-07-30 12:55:24    阅读次数:126
C# X509Certificate类 调用证书
一、命名空间using System.Security.Cryptography.X509Certificates;二、调用代码string certPath = Server.MapPath("/weixinApp/cert/apiclient_cert.p12"); //证书已上传到对应目录 ....
分类:Windows程序   时间:2015-07-30 12:46:08    阅读次数:812
【HDU 5316】Magician(线段树)
一开始度错题了,题意是求一段和最大的【子序列】,要求相邻两个元素的位置必须互为奇偶。 这样我们可以使用线段树维护4个值: 一段区间内开头结尾元素为: 奇奇 奇偶 偶奇 偶偶 的最大值 之后在pushup的的时候根据题目所给的意思进行合并。 #include #include #include using namespace std; #define lson (pos<<1) #...
分类:其他好文   时间:2015-07-30 11:32:11    阅读次数:295
HDU 5317 RGCDQ (合数分解+预处理)
题目链接:HDU 5317 RGCDQ 题意:定义函数F(x)为x的不同的素因子且小于等于x的个数,询问[l,r]区间中gcd(F(i),F(j))的最大值。 思路:暴力预处理出所有的合数分解结果,发现F(x)最大也只有7,之后就是暴力求出所有1到7出现次数的前缀和。询问的时候就打到O(1)了。 AC代码: #include #include #include using n...
分类:其他好文   时间:2015-07-30 11:26:53    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!