码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
第五讲 list
STL 中的list容器//对已string型list进行添加,删除,查找,插入操作#include "stdafx.h"#include #include #include using namespace std;int main(){ list oList; //list不能对相应的...
分类:其他好文   时间:2014-06-26 16:12:28    阅读次数:158
自己第一个控制台的游戏——贪吃蛇
一直想自己写个游戏玩玩,好像很厉害的样子,终于今天下定决心写了个最经典的休闲的小游戏——贪吃蛇,当然也有借鉴别人的程序,但是整个代码都是和别人不一样的,直接上代码吧: #include #include #include #include using namespace std; #define ROW 22 #define COL 22 struct Point { char ch...
分类:其他好文   时间:2014-06-26 13:24:30    阅读次数:196
POJ 1041 John's trip Euler欧拉回路判定和求回路
就是欧拉判定,判定之后就可以使用DFS求欧拉回路了。图论内容。 这里使用邻接矩阵会快很多速度。 这类题目都是十分困难的,光是定义的记录的数组变量就会是一大堆。 #include #include #include #include using namespace std; struct Edge { int ed, des; Edge(int e = 0, int d ...
分类:其他好文   时间:2014-06-26 13:16:05    阅读次数:250
ILGenerator.Emit动态 MSIL编程(三)之动态代理
using System; using System.Linq; using System.Reflection; using System.Reflection.Emit; public sealed class DynamicProxy { pri...
分类:其他好文   时间:2014-06-26 13:08:59    阅读次数:185
C#中数据库连接的配置文件
在C#2010中,如何保存和访问数据库的连接字符串呢?在Winform下要新增App.config文件,在Asp.net下要新增web.config文件。1.打开配置文件添加相关代码后如下即可: 2.添加using System.Configuration;并在项目上右键“添加引用”-...
分类:数据库   时间:2014-06-26 12:58:38    阅读次数:247
实例365(15)--------------经典排序----插入排序法
前言:此代码设计的比较简洁,可能不太容易理解,插入排序就是每一步都将一个待排数据按其大小插入到已经排序的数据中的适当位置,直到全部插入完毕。一:截图二:代码using System;using System.Collections.Generic;using System.ComponentMode...
分类:其他好文   时间:2014-06-26 12:49:46    阅读次数:227
uva10487
#include #include using namespace std; int n,m,k,cases,sum,arr[1005],S[1000000]; void calsum(){ k=0; for (int i=0;i<n-1;i++){ for (int j=i+1;j<n;j++){ S[k++]=arr[i]+arr[j]; } } sort(S,S...
分类:其他好文   时间:2014-06-26 10:51:01    阅读次数:198
Codeforces 374D Inna and Sequence 二分+树状数组
题目链接:点击打开链接 给定n个操作,m长的序列a 下面n个数 if(co>=0)则向字符串添加一个co (开始是空字符串) else 删除字符串中有a的下标的字符 直接在序列上搞,简单模拟 #include #include #include #include #include #include #include #include #include #include using na...
分类:其他好文   时间:2014-06-26 07:52:58    阅读次数:226
Codeforces 10C Digital Root 规律题
题目链接:点击打开链接 #include #include #include #include #include #include #include #include #include #include using namespace std; #define N 1000005 #define ll __int64 ll num[10],n; ll go(ll x){ ll ans ...
分类:其他好文   时间:2014-06-26 07:31:44    阅读次数:191
opencv-边缘检测
// ConsoleApplication3_6_23.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include using namespace std; using namespace cv; Mat src,dst,gray; int pro_typ...
分类:其他好文   时间:2014-06-26 06:46:25    阅读次数:315
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!