码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
C# Linq
linq可以对多种数据源和对象进行查询,可以减少代码量,提高检索效率。感觉linq很像sql。。,但是语句的顺序不同linq的查询形式如下: from... select... where...例如查询偶数:using System;using System.Collections.Gener...
分类:Windows程序   时间:2015-04-29 13:31:15    阅读次数:138
C# 委托 Action Func
Action : 传递参数,只进不出,所以方法为voidFunc : 传递参数,有进有出,所以传递的方法要returnusing System;using System.Collections.Generic;using System.Linq;namespace rooxml{ public...
分类:Windows程序   时间:2015-04-29 13:07:03    阅读次数:145
图形开发之3D向量类(C#)
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VectorDemo { /// /// 3D向量类 /// public class Vector3 { public float X { ge...
分类:Windows程序   时间:2015-04-29 11:52:48    阅读次数:165
Unity3D WebCamTexture 调用外部摄像头
一:Unity 中使用WebCamTexture 调用摄像头实现拍照和摄像。 using UnityEngine; using System.Collections; using System.IO; using System.Runtime.Serialization; using System.Runtime .Serialization.Formatters.Binary; using S...
分类:编程语言   时间:2015-04-29 11:41:29    阅读次数:324
poj 3134 Power Calculus iddfs(迭代深搜)
iddfs入门题。 //poj 3134 //sep9 #include using namespace std; int n,deep; int a[30]; bool iddfs(int pos) { int t; if(pos>deep) return false; if(a[pos]<<(deep-pos)<n) return false; if(a[pos]==n) ret...
分类:其他好文   时间:2015-04-29 11:38:56    阅读次数:179
HDU 1160 FatMouse's Speed
刚开始输入写错了,最后还会接收一次值的 这道题如果只有一个维度,那么直接排序之后顺序输出就行了,但这里有二维,排序之后有一些点不能同时选,就需要决择了 先将所有老鼠按我们需要的大小关系排个序,然后就相当于求个最长上升子序列了 #include #include #include #include const int inf=999999; using namespace std; int d...
分类:其他好文   时间:2015-04-29 10:08:03    阅读次数:112
高精度模版
还算可以的模版 #include #include #include #include #include #define ll long long #define MAXN 9999 #define MAXSIZE 10 #define DLEN 4 using namespace std; class BigNum { private: int a[500]; //可以控制大...
分类:其他好文   时间:2015-04-29 10:02:59    阅读次数:139
第八周(运算符重载)Time类
/* *copyright(c) 2015,烟台大学计算机学院 *All rights reserved。 *文件名称:第八周(运算符重载) *作者:王忠 *完成日期:2015.4.28 *版本号:v1.0 * *问题描述:实现Time类中的运算符重载。 *输入描述: *程序输出:   #include using namespace std; class...
分类:其他好文   时间:2015-04-29 09:57:08    阅读次数:114
二叉树几种遍历算法
/*二叉树的遍历*/ #include #include #include using namespace std; typedef struct node { char data; struct node *lchild,*rchild; }BinTree; typedef struct node1 { BinTree *btnode; bool is...
分类:编程语言   时间:2015-04-29 09:56:04    阅读次数:147
第8周项目1(1)-用成员函数实现复数类中的运算符重载
#include using namespace std; class Complex { public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r; imag=i;} Complex operator+(const Complex &c2); Complex ope...
分类:其他好文   时间:2015-04-29 09:54:47    阅读次数:98
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!