![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法类
东平同学
这个作者很懒,什么都没留下…
展开
-
链式堆栈的实现 (带头节点的链式堆栈)
已经添加好测试函数原创 2010-09-27 17:47:00 · 1596 阅读 · 0 评论 -
顺序堆栈的实现 (虽然很简单,但是今天拿他来试试,毕竟现在还不是很牛B,希望这能巩固下基础)
第一次在博客上发代码,继续努力学习!原创 2010-09-27 16:38:00 · 797 阅读 · 0 评论 -
天 转日期类, 上次自己写了个 日期类, 以天做基数的类
#include #include using namespace std;typedef struct Info_{ short int year; short int month; short int day;}Info;/*是闰年?*/bool RR(int year){ if( (year % 4 == 0 && year % 100原创 2012-03-29 10:50:40 · 712 阅读 · 0 评论 -
Caculate 年月日 快捷转换公式
经常碰到 日期转换的问题, 无意间发现个好公式. 贴上代码int CaculateWeekDay(int y, int m, int d){ if(m==1 || m==2) //这个公式 是把 1~2 月 看成 上年的 13 14 月 { m += 12; y--; } return (d+2*m +3*(m+原创 2012-03-29 10:41:10 · 2415 阅读 · 0 评论 -
一个效率很高的BM算法 汇编实现的
{ The originial benchmark program was to demonstrate the speed difference between the POS() in Turbo Pascal 4 or 5 brute-force and the Boyer-Moore method function POSBM() Program author: Costa转载 2012-04-15 14:58:39 · 1089 阅读 · 0 评论 -
求最长公共子串问题
n个字符串,1如n=31.what is local bus?2.this is local bus。3.local bus is name sdhfj。那么最长的共同子串是local bus函数为char * findchar(const char**asd,const int n)大体就是这些,用c去实现!!大牛们 给力啊!!看到个跟帖的代码,PS:原创 2012-04-19 19:48:01 · 780 阅读 · 0 评论