摘要: // string.h.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include <iostream>#include "string.h"#include <string>using namespace std;void main(){char * y="qqq",*x="qqq";char p[5]="aaaa",*a="qqqqq";char *b= 阅读全文
posted @ 2012-05-04 22:03 MFT 阅读(244) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include "string.h"using namespace std;void main(){char p[10]="aaaa",*a="qqqqq";char *b=strcat(p,a);cout <<b<<"--"<<strlen(p)<<"————"<<p[5]<<"--"<<endl; for(int i=0;i<str 阅读全文
posted @ 2012-05-04 20:09 MFT 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Will E-book Replace Traditionnal Books Recent years have seen the rapid development of information technology .As a result , many electronic inventions ,including e-books,have found their way into our daily life and have gained increasing popularity among common people. it is no wonder that somepeo. 阅读全文
posted @ 2012-05-04 15:10 MFT 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 这个题就是求出所有结点的距离之后,再找出某个结点,该结点离其它结点的最大距离是所有结点中是最小的...解法1:深搜出所有结点间的距离,但是会超时,即使深搜的过程使用中记忆化搜索(就是用2维数组保存已经搜出的答案,如果后面的搜索需要用到直接使用即可)...解法2:Floyd算法,3重循环直接找出所有结点之间的最短距离解法3:对每一个结点应用一次迪杰斯特拉算法,找出所有结点与其它结点间的最短距离...解法2:#include <stdio.h>#include <string.h>#define MAX (100 + 10)#define INF (1000000 + 10 阅读全文
posted @ 2012-05-04 08:01 MFT 阅读(232) 评论(0) 推荐(0) 编辑