会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
douzi
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
21
22
23
24
25
26
下一页
2016年10月12日
转载: 一篇关于字符串匹配的(KMP)算法_图文并茂
摘要: http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html
阅读全文
posted @ 2016-10-12 10:07 douzujun
阅读(167)
评论(0)
推荐(0)
2016年10月8日
迷宫游戏_自动生成地图
摘要: (更新过后的代码效果)
阅读全文
posted @ 2016-10-08 16:34 douzujun
阅读(2235)
评论(2)
推荐(0)
2016年10月7日
迷宫问题
摘要: 1 /* 2 8 6 3 1 1 1 1 1 1 1 1 4 1 0 0 1 0 0 1 1 5 1 1 0 0 0 0 0 1 6 1 0 0 1 0 1 0 1 7 1 0 0 0 0 0 0 1 8 1 1 1 1 1 1 1 1 9 */ 10 #include <iostream> ///
阅读全文
posted @ 2016-10-07 22:44 douzujun
阅读(362)
评论(0)
推荐(0)
2016年10月6日
八皇后问题动态演示_Qt5实现
摘要: 源代码下载地址:链接:https://pan.baidu.com/s/12BTDR8pRMvxpKYNFb988EQ 密码:yk0o
阅读全文
posted @ 2016-10-06 16:30 douzujun
阅读(1289)
评论(0)
推荐(0)
2016年10月5日
表达式括号匹配配对判断问题
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 int n; 10 string ch; 11 cout > n; 13 while (n--) { 14 stack check; 15 ...
阅读全文
posted @ 2016-10-05 14:56 douzujun
阅读(2403)
评论(0)
推荐(0)
2016年9月30日
表达式计算 控制台
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 void welcome(); //欢迎模块 12 void play_mp3...
阅读全文
posted @ 2016-09-30 00:45 douzujun
阅读(349)
评论(0)
推荐(0)
2016年9月27日
QT_计算器的简单实现
摘要: //全部代码见,百度云 链接: https://pan.baidu.com/s/1qXQKPTM 密码: qwfn
阅读全文
posted @ 2016-09-27 17:15 douzujun
阅读(5280)
评论(0)
推荐(0)
2016年9月22日
Vector_h
摘要: 1 #ifndef VECTOR_H 2 #define VECTOR_H 3 4 #include 5 6 template 7 class Vector 8 { 9 private: 10 int theSize; //实际数据大小 11 int theCapacity; ...
阅读全文
posted @ 2016-09-22 22:18 douzujun
阅读(815)
评论(2)
推荐(0)
2016年9月11日
静态链表实现_详细注释
摘要: 1 //SLinkList.h 2 3 #ifndef _SLINK_LIST_ 4 #define _SLINK_LIST_ 5 6 template 7 class SLinkList 8 { 9 public: 10 SLinkList(int maxz = 100); 11 ~SLinkList(); 12 void ...
阅读全文
posted @ 2016-09-11 22:13 douzujun
阅读(516)
评论(0)
推荐(0)
2016年8月31日
数据结构One_Vector(向量的简单实现)
摘要: 1 #include 2 using namespace std; 3 4 template 5 class Vector 6 { 7 private: 8 int theSize; //实际数据大小 9 int theCapacity; //实际容器...
阅读全文
posted @ 2016-08-31 22:49 douzujun
阅读(1051)
评论(0)
推荐(0)
2016年8月28日
Linear regression with multiple variables(多特征的线型回归)算法实例_梯度下降解法(Gradient DesentMulti)以及正规方程解法(Normal Equation)
摘要: %第一列为 size of House(feet^2),第二列为 number of bedroom,第三列为 price of House 1 2104,3,399900 2 1600,3,329900 3 2400,3,369000 4 1416,2,232000 5 3000,4,539900 6 1985,4,299900 7 1534,3,314900 8 1427,...
阅读全文
posted @ 2016-08-28 19:17 douzujun
阅读(1048)
评论(0)
推荐(1)
Linear regression with one variable算法实例讲解(绘制图像,cost_Function ,Gradient Desent, 拟合曲线, 轮廓图绘制)_矩阵操作
摘要: 绘图效果如上。
阅读全文
posted @ 2016-08-28 11:41 douzujun
阅读(1153)
评论(0)
推荐(0)
2016年8月21日
QT_SVG格式图片浏览器_源代码下载_详细注释
摘要: 源代码链接: http://pan.baidu.com/s/1pKA5Vcv 密码: ib2x 注:SVG格式图片特点: 1. 文件小 2. 图像中文字独立于图像, 可以编辑,可搜索. 3.没有字体限制 4.可以任意缩放而不破坏图像清晰度和细节 下面实现一个SVG图片浏览器. 显示效果如图(放大超过
阅读全文
posted @ 2016-08-21 10:58 douzujun
阅读(2502)
评论(0)
推荐(0)
2016年8月20日
Qt5_简易画板_详细注释
摘要: 代码下载链接: http://pan.baidu.com/s/1hsc41Ek 密码: 5hdg 显示效果如下: 代码附有详细注释(代码如下)
阅读全文
posted @ 2016-08-20 18:00 douzujun
阅读(9064)
评论(0)
推荐(1)
2016年8月18日
UVa1593_Allgnment_Of_Code
摘要: 这里有一篇关于:istringstream, ostringstream, stringstream的文章,感觉不错. http://www.cnblogs.com/gamesky/archive/2013/01/09/2852356.html
阅读全文
posted @ 2016-08-18 15:49 douzujun
阅读(264)
评论(0)
推荐(0)
2016年8月15日
UVa815_Flooded!
摘要: 如图,将海拔按高矮排序好(先排序好,比较容易计算已经淹没地区的水量),由于是水往地处流,如果水量如图,淹没区域如图中阴影地区。
阅读全文
posted @ 2016-08-15 11:49 douzujun
阅读(277)
评论(0)
推荐(0)
2016年8月8日
虚拟机下Linux(终端)配置网络的方法
摘要: 这几天在虚拟机vmware上部署centos系统,想通过内部联网用yum命令安装必需的软件,但是一直不能静态地址联网,今天终于找到一个方法centos内部设置IP,对外联网。设置过程如下: 1、首先是网络适配器设置为NAT; 2、然后是IP设置,修改/etc/sysconfig/network-scripts/ifcfg-eth0的内容为: DEVICE=eth0 TYPE=Ethernet O...
阅读全文
posted @ 2016-08-08 21:21 douzujun
阅读(21485)
评论(0)
推荐(0)
2016年7月27日
R语言入门小练习
摘要: 要求:模拟产生统计专业同学的名单(学号区分),记录数学,线代,英语三科成绩 > num <- seq(1513032001, 15130320100) #模拟100位同学 > math <- round( runif(100, min = 80, max = 100) ) #round() 产生随机
阅读全文
posted @ 2016-07-27 09:59 douzujun
阅读(713)
评论(0)
推荐(0)
2016年7月25日
QT_文本编辑器_源码下载
摘要: 源码下载: 链接: http://pan.baidu.com/s/1c21EVRy 密码: qub8 实现主要的功能有:新建,打开,保存,另存为,查找(查找的时候需要先将光标放到最下面位置才能查全,不知道为什么...找不出来),改变字体,编辑器背景色等.... 程序效果截图如下: 代码如下: //i
阅读全文
posted @ 2016-07-25 07:56 douzujun
阅读(4505)
评论(12)
推荐(0)
2016年7月19日
简易qq对话框
摘要: 运行效果,如图所示.
阅读全文
posted @ 2016-07-19 16:04 douzujun
阅读(652)
评论(1)
推荐(0)
2016年7月10日
整数翻译成英文
摘要: 程序效果: 1 #include 2 #include 3 using namespace std; 4 5 class robot{ 6 string name; 7 string type; //型号 8 public: 9 robot(string name = "xxx",string type = "xxx") : name(name...
阅读全文
posted @ 2016-07-10 10:03 douzujun
阅读(1041)
评论(3)
推荐(0)
2016年7月7日
大数计算 数组模拟 加减乘除
摘要: #include #include #include #include #include #include using namespace std; const int maxn = 5000; //idea : s[0]做符号位, s[0]=0(0),1(>0),-1( 0; i--) { res += char(s[i] + '0'); //输出...
阅读全文
posted @ 2016-07-07 13:19 douzujun
阅读(1119)
评论(3)
推荐(0)
2016年7月3日
在R语言中无法设置CRAN镜像问题
摘要: 很大的可能是因为使用的浏览器不是IE浏览器的问题,因为CRAN的镜像需要用IE浏览器来打开。 只需要按照下面设置即可: 1.打开IE-->设置-->Internet选项-->高级 2. 将这一项的勾,去掉 3.打开R,设置R镜像. http://blog.sina.com.cn/s/blog_b07
阅读全文
posted @ 2016-07-03 00:34 douzujun
阅读(3770)
评论(0)
推荐(0)
2016年6月26日
词频统计_输入到文件
摘要: 1 /* 2 输入文件见337.in.txt 3 输出文件见338.out.txt 4 */ 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 const int maxList = 2048 * 10 + 10; //单词表的最大值 12 c...
阅读全文
posted @ 2016-06-26 17:19 douzujun
阅读(1484)
评论(3)
推荐(0)
整数划分问题
摘要: 1 #include 2 using namespace std; 3 4 //打印一种划分 5 void display(int *result, int length) 6 { 7 cout = 0 && m == 1时,有n中{1,1,....1}.即划分为f(n-1,m); 如:6 = 1+1+1+1+1+1时 21 if (n >= 0 && m == ...
阅读全文
posted @ 2016-06-26 11:54 douzujun
阅读(566)
评论(0)
推荐(0)
2016年6月14日
chaper3_exerise_Uva10340_子字串
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int Find(char *fstr, char *sstr) 7 { 8 int lenf = strlen(fstr), lens = strlen(sstr), i; 9 for (i = 0; i > s >> t; 41 ...
阅读全文
posted @ 2016-06-14 17:49 douzujun
阅读(230)
评论(0)
推荐(0)
chaper3_exercise_Uva1585_score
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main(void) 6 { 7 int *count, T, k = 0, j = 0; 8 string c; 9 cin >> T; 10 count = new int[T]; 11 if (!count) 12 {...
阅读全文
posted @ 2016-06-14 17:44 douzujun
阅读(168)
评论(0)
推荐(0)
chaper3_exerise_Uva1568_Molar_Mass_分子量
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn = 1010; 7 8 void get_num(int &num,string c,int j) 9 { 10 while (isdigit(c[j]) && c[j]) 11 { 12 ...
阅读全文
posted @ 2016-06-14 17:43 douzujun
阅读(234)
评论(0)
推荐(0)
chaper3_exerise_Uva1225_digit_counting
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 10010; 6 7 int main(void) 8 { 9 int N, n; //N组数据 , n前n个整数顺次 10 cin >> N; 11 for (int ...
阅读全文
posted @ 2016-06-14 17:42 douzujun
阅读(174)
评论(0)
推荐(0)
chaper3_exerise_Uva1368_DNA序列
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxn = 1010; 8 9 char str[maxn][maxn] = {0}; 10 11 int main(void) 12 { 13 int T, m, n; ...
阅读全文
posted @ 2016-06-14 17:41 douzujun
阅读(210)
评论(0)
推荐(0)
上一页
1
···
21
22
23
24
25
26
下一页
公告