码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
数字三角形
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int s[100][100]; 8 int dp[100][100]; 9 int max(int a,int b)10 {11 if(...
分类:其他好文   时间:2016-01-16 22:36:13    阅读次数:252
【c++】智能指针
// vc下的智能指针,重点在于拥有权的转移#include using namespace std;templateclass Autoptr{public: Autoptr(int *p = NULL) :ptr(p), owns(ptr != NULL) {} Autoptr(const Au...
分类:编程语言   时间:2016-01-16 22:27:25    阅读次数:230
boost学习2.4:progress_diplay
progress_diplay可以在显示台显示程序执行的进度。(1)类摘要#include "stdafx.h"#include#include #include#include #include using namespace std;using namespace boost;class pro...
分类:其他好文   时间:2016-01-16 22:26:52    阅读次数:293
自动生成 中文随机名字(转)
发现一个 很好用的 随机名字 代码,于是稍微改一改,能直接用在u3d上。当然 还是要感谢 作者,和哥当初 思考的方式一样,那些小白说 随机一些内置的中文 真傻缺了using UnityEngine;using System.Collections;using System.Text;public c...
分类:其他好文   时间:2016-01-16 20:58:01    阅读次数:126
bzoj2565: 最长双回文串
manacher之后乱搞#include #include #include #include #include #include #define N 200005#define to(x) ((x)+p[x])#define from(x) ((x)-p[x])using namespace st...
分类:其他好文   时间:2016-01-16 20:55:44    阅读次数:246
1045-Acess denied for user:'root'@'192.100.1.243'(Using password:YES)
Navicat连接mysql时报错:1045-Acessdeniedforuser:‘root‘@‘192.100.1.243‘(Usingpassword:YES)解决办法:loginas:rootroot@192.168.0.192‘spassword:Lastfailedlogin:SatJan1616:51:04CST2016from192.168.198.109onssh:nottyTherewere8failedloginattemptssincethelastsuccess..
分类:其他好文   时间:2016-01-16 19:35:32    阅读次数:353
c# 使用c++指针
c++指针基本使用需要指定unsafe编译选项。using System;using System.IO;using System.Reflection;using System.Runtime.Serialization.Formatters.Binary;namespace ConsoleA.....
分类:编程语言   时间:2016-01-16 19:21:42    阅读次数:214
HDU 1240
1 #include 2 #include 3 #include 4 #include 5 int mmin,n; 6 using namespace std; 7 const int qq=11; 8 char map[qq][qq][qq]; 9 int dx[]={0,0,-1,1,0,0}....
分类:其他好文   时间:2016-01-16 16:50:59    阅读次数:157
三层架构dal 层基本代码 非查询/查询
DAL 数据链路层 非查询/查询using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data;using...
分类:其他好文   时间:2016-01-16 01:22:10    阅读次数:222
LightOJ1122 Digit Count(DP)
dp[i][j]表示长度i末尾为S[j]的方案数dp[1][0...m-1]=1dp[i][j]=∑dp[i-1][k] (|S[k]-S[j]| 2 #include 3 #include 4 using namespace std; 5 int d[11][11]; 6 int main(){ ...
分类:其他好文   时间:2016-01-16 01:16:44    阅读次数:383
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!