码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
Unity的简单服务器
using UnityEngine;using System.Collections;public class networkserver : MonoBehaviour { private string roip = "127.0.0.1"; private int rport = 1...
分类:编程语言   时间:2015-06-19 18:30:13    阅读次数:183
我们一起学习WCF 第三篇头消息验证用户身份
前言:今天我主要写的是关于头消息的一个用处验证用户信息下面我画一个图,可以先看图第一步:我们先开始做用户请求代码首先:创建一个可执行的上下文对象块并定义内部传输的通道using (OperationContextScope scope = new OperationContextScope(user...
分类:其他好文   时间:2015-06-19 18:12:14    阅读次数:146
UVA 10604--Chemical Reaction+记忆化搜索
题目链接:点击进入 开始看到m和k都很小,就直接暴力了一发,结果T了.后面看到m只有6那么大,k又小于10,就觉得可以用记忆化搜索,状态我们就定为dp[n1][n2][n3][n4][n5][n6],表示n1–n6六种化学试剂的量,状态转移就时选两份试剂进行混合.代码如下:#include #include #include using nam...
分类:其他好文   时间:2015-06-19 16:47:19    阅读次数:116
16周 补充阅读
问题描述: 补充阅读 #include using namespace std; void f(); class T { public: T( ) { cout"constructor"<<endl; try { throw "exception"; } catch(c...
分类:其他好文   时间:2015-06-19 15:26:48    阅读次数:123
数据结构 二叉树大部分操作的实现
#ifndef BINTREE_H_INCLUDED #define BINTREE_H_INCLUDED #include #include #include #include using namespace std; template class BinTree; template class BinTreeNode { public: friend class BinT...
分类:其他好文   时间:2015-06-19 15:25:51    阅读次数:139
注释转换
#include #include using namespace std; extern "C" int ConvertComment(FILE *inputfile, FILE *outputfile); #define UL unsigned long typedef enum { NO_COMMENT_STATE, C_COMMENT_STATE, CPP_COMMENT_ST...
分类:其他好文   时间:2015-06-19 15:25:23    阅读次数:130
进制转换
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication19{ class Program { static ...
分类:其他好文   时间:2015-06-19 15:04:54    阅读次数:97
C#测量程序时间差
using System; using System.Collections.Generic; class Sentence { static void Main() { double ticks0 = DateTime.Now.Ticks; for (int i = 0; i < int.MaxValue; i++) { //...
分类:Windows程序   时间:2015-06-19 13:34:41    阅读次数:137
第16周《C++语言基础》程序阅读——异常处理和命名空间
问题描述: 阅读下面的程序,写出输出结果 (1) #include using namespace std; int a[10]= {1,2, 3, 4, 5, 6, 7, 8, 9, 10}; int fun( int i); int main() { int i ,s=0; for( i=0; i10; i++) { try ...
分类:编程语言   时间:2015-06-19 13:31:50    阅读次数:97
map 容器常用功能小结
具体功能参考:click here~~ #include using namespace std; int main() { /*map.at:修改元素值 mapmm= { { "abc",0}, { "bcd",0}, }; mm.at("abc")=-7; mm.at("bcd")=20; for(au...
分类:其他好文   时间:2015-06-19 13:30:54    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!