linq可以对多种数据源和对象进行查询,可以减少代码量,提高检索效率。感觉linq很像sql。。,但是语句的顺序不同linq的查询形式如下: from... select... where...例如查询偶数:using System;using System.Collections.Gener...
Action : 传递参数,只进不出,所以方法为voidFunc : 传递参数,有进有出,所以传递的方法要returnusing System;using System.Collections.Generic;using System.Linq;namespace rooxml{ public...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VectorDemo
{
///
/// 3D向量类
///
public class Vector3
{
public float X { ge...
一: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
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
刚开始输入写错了,最后还会接收一次值的
这道题如果只有一个维度,那么直接排序之后顺序输出就行了,但这里有二维,排序之后有一些点不能同时选,就需要决择了
先将所有老鼠按我们需要的大小关系排个序,然后就相当于求个最长上升子序列了
#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
/*
*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
#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