摘要:
http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html 阅读全文
摘要:
(更新过后的代码效果) 阅读全文
摘要:
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> /// 阅读全文
摘要:
源代码下载地址:链接:https://pan.baidu.com/s/12BTDR8pRMvxpKYNFb988EQ 密码:yk0o 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
//全部代码见,百度云 链接: https://pan.baidu.com/s/1qXQKPTM 密码: qwfn 阅读全文
摘要:
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; ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
1 #include 2 using namespace std; 3 4 template 5 class Vector 6 { 7 private: 8 int theSize; //实际数据大小 9 int theCapacity; //实际容器... 阅读全文
摘要:
%第一列为 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,... 阅读全文
摘要:
绘图效果如上。 阅读全文
摘要:
源代码链接: http://pan.baidu.com/s/1pKA5Vcv 密码: ib2x 注:SVG格式图片特点: 1. 文件小 2. 图像中文字独立于图像, 可以编辑,可搜索. 3.没有字体限制 4.可以任意缩放而不破坏图像清晰度和细节 下面实现一个SVG图片浏览器. 显示效果如图(放大超过 阅读全文
摘要:
代码下载链接: http://pan.baidu.com/s/1hsc41Ek 密码: 5hdg 显示效果如下: 代码附有详细注释(代码如下) 阅读全文
摘要:
这里有一篇关于:istringstream, ostringstream, stringstream的文章,感觉不错. http://www.cnblogs.com/gamesky/archive/2013/01/09/2852356.html 阅读全文
摘要:
如图,将海拔按高矮排序好(先排序好,比较容易计算已经淹没地区的水量),由于是水往地处流,如果水量如图,淹没区域如图中阴影地区。 阅读全文
摘要:
这几天在虚拟机vmware上部署centos系统,想通过内部联网用yum命令安装必需的软件,但是一直不能静态地址联网,今天终于找到一个方法centos内部设置IP,对外联网。设置过程如下: 1、首先是网络适配器设置为NAT; 2、然后是IP设置,修改/etc/sysconfig/network-scripts/ifcfg-eth0的内容为: DEVICE=eth0 TYPE=Ethernet O... 阅读全文
摘要:
要求:模拟产生统计专业同学的名单(学号区分),记录数学,线代,英语三科成绩 > num <- seq(1513032001, 15130320100) #模拟100位同学 > math <- round( runif(100, min = 80, max = 100) ) #round() 产生随机 阅读全文
摘要:
源码下载: 链接: http://pan.baidu.com/s/1c21EVRy 密码: qub8 实现主要的功能有:新建,打开,保存,另存为,查找(查找的时候需要先将光标放到最下面位置才能查全,不知道为什么...找不出来),改变字体,编辑器背景色等.... 程序效果截图如下: 代码如下: //i 阅读全文
摘要:
程序效果: 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... 阅读全文
摘要:
#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'); //输出... 阅读全文
摘要:
很大的可能是因为使用的浏览器不是IE浏览器的问题,因为CRAN的镜像需要用IE浏览器来打开。 只需要按照下面设置即可: 1.打开IE-->设置-->Internet选项-->高级 2. 将这一项的勾,去掉 3.打开R,设置R镜像. http://blog.sina.com.cn/s/blog_b07 阅读全文
摘要:
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... 阅读全文
摘要:
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 == ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 {... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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; ... 阅读全文