算法实现题 8-9 方格取数问题(习题 8-20)?问题描述:在一个有 m*n 个方格的棋盘中,每个方格中有一个正整数。现要从方格中取数,使任意 2 个数所在方格没有公共边,且取出的数的总和最大。试设计一个满足要求的取数算法。?编程任务:对于给定的方格棋盘,按照取数要求编程找出总和最大的数。?数据输...
分类:
其他好文 时间:
2014-07-16 19:24:45
阅读次数:
203
exec 命令实例find . -name "*.cc" -exec grep -P -n -H --color=auto "[^\w]main[^\w]" {} \;-P perl正则查找-n 显示行号-H 显示文件名--color=auto 关键字高亮显示[^\w]main[^\w] main关...
分类:
其他好文 时间:
2014-07-15 09:32:46
阅读次数:
244
一:通过JavaScript的方式设置样式(:拿习题为例): var shuiguo = document.getElementById('fruit'); shuiguo.style.backgroundColor = 'Red'; //1 shuiguo.onclick = function (...
分类:
编程语言 时间:
2014-07-15 00:32:00
阅读次数:
323
这是练习题,没啥难度,留作纪念,记录下来 1 #include 2 using namespace std; 3 int main() 4 { 5 int number; 6 7 for (int i = 0; ; i++) 8 { 9 if (i%3 =...
分类:
其他好文 时间:
2014-07-13 22:40:44
阅读次数:
296
[root@luozhonghua FCGI-0.71]# perl Makefile.PL
can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5...
分类:
其他好文 时间:
2014-07-13 18:32:48
阅读次数:
281
基于Tomcat7.0版本配置CGI开发环境,步聚如下:
以我的Tomcat7安装目录为例:TOMCA_HOME = /Users/yangxin/Documents/devToos/java/apache-tomcat-7.0.39
1、打开TOMCA_HOME/conf/web.xml
将CGI的Serlvet配置与URL映射注释打开
cgi
org....
分类:
其他好文 时间:
2014-07-13 16:42:37
阅读次数:
202
题目请见 http://download.csdn.net/download/wangpegasus/5701765
第四章以下通过VS2012
1、
#include "stdafx.h"
#include
double sqrt(double temp)
{
double before, after;
before = 1.0;
after = 1.0;
do
{...
分类:
其他好文 时间:
2014-07-12 23:19:41
阅读次数:
225
实验室有要做阶段练习题了,其中有一道改bug题:#include
#include
int main(int, char**)
{
std::vector** ppRandomData = distributeRandomInt(100);
for (unsigned int i=0; i<1000; i++)
{
if (ppRandomData[i])
{
std:...
分类:
其他好文 时间:
2014-07-12 19:46:35
阅读次数:
223
经过修改,看起来GWP能工作了。不过还是需要深入了解ca的page flow,PHP and Perl大不同1015 ls /var/www/html/gwp/lib/database.php1016 cp /var/www/html/cacti/lib/functions.php /var/www...
分类:
Web程序 时间:
2014-07-12 15:10:30
阅读次数:
475