码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
串(C++实现)
本段程序实现串的存储结构是采用堆的动态分配存储表示,并实现了几乎所有常用的串的配套函数 其中逻辑性比较强的就是串的模式匹配算法,在下面的程序中,分别用BF算法和KMP算法对其进行了 实现。 #include using namespace std; struct HString { HString() { ch = 0; length = 0; } char * ch;//...
分类:编程语言   时间:2014-05-14 01:12:35    阅读次数:378
递归降序遍历目录层次结构
在学习APUE第4章时候,里面编写了一段递归顺序遍历目录层次的结构的代码,该代码实现了递归访问目录。但是该代码并没有显示降序的方式显示目录树。 因此,我讲代码稍微修改,使其能够按照tree命令的方式显示,同时也统计了各个文件的数量。 #include #include #include #include #include #include #include #include using nam...
分类:其他好文   时间:2014-05-14 00:02:02    阅读次数:501
九度 1207
#include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-13 23:42:33    阅读次数:316
boost的posix_time用法详解01
// boost_time.cpp : 定义控制台应用程序的入口点。 //made by davidsu33 //2014-5-11 //the usage of posix_time #include "stdafx.h" #include #include #include using namespace std; #define SHOW_VARIABLE(x){ cou...
分类:其他好文   时间:2014-05-13 09:12:49    阅读次数:656
HDU 4022 Bombing STL 模拟题
手动模拟。。 #include #include #include #include #include #include #include #include using namespace std; #define N 10100 #define inf 1000000010 mapx,y; struct X{ int x,y; bool operator<(const X&a)const{...
分类:其他好文   时间:2014-05-13 07:29:10    阅读次数:294
USACO dualpal
/* ID:kevin_s1 PROG:dualpal LANG:C++ */ #include #include #include #include #include using namespace std; int N,S; vector result; bool isPalindromic(string num){ bool flag = true; int len =...
分类:其他好文   时间:2014-05-13 06:10:09    阅读次数:312
coco2d-x CCScrollView实现背包翻页
#include "CCCGameScrollView.h" USING_NS_CC; USING_NS_CC_EXT; CCCGameScrollView::CCCGameScrollView() :m_fAdjustSpeed(ADJUST_ANIM_VELOCITY) , m_nPrePage(0) { } CCCGameScrollView::~CCCGameScrollV...
分类:其他好文   时间:2014-05-13 05:48:36    阅读次数:270
利用数据结构栈求解迷宫问题
本段程序主要利用数据结构栈的先进后出特点,实现回溯求解迷宫路径问题。 #include #include using namespace std; //坐标类 struct Point { int x; int y; }; //地图类 template struct Map { int (*p)[A]; int row;//行数 int col;//列数 }; //start起始点, ...
分类:其他好文   时间:2014-05-13 05:25:02    阅读次数:478
HDU 4028 The time of a day STL 模拟题
暴力出奇迹。。 #include #include #include #include #include #include #include #include using namespace std; #define ll __int64 #define N 42 ll n,m,ans; ll Gcd(ll x,ll y){ if(x>y)swap(x,y); while(x){ y%=...
分类:其他好文   时间:2014-05-12 23:11:06    阅读次数:445
显示数据库中的存储过程__转
显示数据库中的存储过程__转 It's no easy trick to see stored procedures in a database programmatically with a scripting language like ASP. If you're using MS Access, you're out of luck. Access provides no way to ...
分类:数据库   时间:2014-05-12 22:43:25    阅读次数:541
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!