上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 95 下一页
摘要: 已知顺序表L递增有序,写一算法,将X插入到线性表的适当位置,以保持线性表的有序,逆置。 本没有什么难度,可是写作业本上,不用DEBUG也还是出现了几个错误。 切忌眼高手低。 #include #include #include #include #include using namespace ... 阅读全文
posted @ 2013-03-22 13:06 N3verL4nd 阅读(1690) 评论(0) 推荐(0) 编辑
摘要: UNICODE环境设置 在安装Visual Studio时,在选择VC++时需要加入unicode选项,保证相关的库文件可以拷贝到system32下。 UNICODE编译设置: C/C++, Preprocessor difinitions 去除_MBCS,加_UNICODE,UNICO... 阅读全文
posted @ 2013-03-21 22:40 N3verL4nd 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 一、问题描述: error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup 二、产生原因: 1. 你用vc建了一个控制台程序,它的入口函数应该是main... 阅读全文
posted @ 2013-03-21 15:03 N3verL4nd 阅读(471) 评论(0) 推荐(0) 编辑
摘要: Unicode简介 Unicode是ASCII字符编码的一个扩展。Unicode用的是16位字符编码,而不是像ASCII那样的7位编码。 ------------------------------------------------------------------------------... 阅读全文
posted @ 2013-03-20 19:29 N3verL4nd 阅读(247) 评论(0) 推荐(0) 编辑
摘要: #include #include int map[100][100];int main(){ memset(map, 0, sizeof(map)); int n, i, j,count; int x = 1, y = 0; int tot = 1; scanf("%d", &n);... 阅读全文
posted @ 2013-03-19 21:17 N3verL4nd 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std;int Start = 0;int End = 0;int maxSubSum(const vector& a){ int maxSum = -1,... 阅读全文
posted @ 2013-03-17 17:09 N3verL4nd 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 链接:http://poj.org/problem?id=2192 和数塔一样,中间存在重复子问题。用一个数组记录是否被访问过,也就是记忆化搜索了。 #include #include #include #include #include using namespace std;bool d... 阅读全文
posted @ 2013-03-17 12:27 N3verL4nd 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 73 88 1 02 7 4 44 5 2 6 5 典型的数塔问题。 三种解决方案: 1、递归。 2、DP 3、记忆化搜索 今天用动态规划解决这一入门题。 状态转移方程: dp[x][y] = max(dp[x+1][y],dp[x+1][y+1... 阅读全文
posted @ 2013-03-16 10:51 N3verL4nd 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 马上省赛了,还是刷水题的弱菜。。。 六级 + 省赛 + windows sdk + 数据结构(细+深度) + 操作系统(实现内存管理和文件操作等) 。。。 算了算,累死也很难完成了。 --------------------------------------------------------... 阅读全文
posted @ 2013-03-16 10:28 N3verL4nd 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){ int *test = new int[10]; //int *p = test; for (int i = 0; i using namespace std;int main(){ int *test = new... 阅读全文
posted @ 2013-03-15 22:51 N3verL4nd 阅读(124) 评论(0) 推荐(0) 编辑
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 95 下一页