上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
  2011年5月9日
摘要: prim算法求最小生成树中的最大边测试数据:20 03 4317 419 418 581 14 01 22 23 24 23 05 139 1010 10100 1065 5100 1004 43 32 21 151 22 13 24 15 23999 9991 13 30结果Scenario #1Frog Distance = 5.000Scenario #2Frog Distance = 1.414Scenario #3Frog Distance = 1.414Scenario #4Frog Distance = 1.000Scenario #5Frog Distance = 134.35 阅读全文
posted @ 2011-05-09 10:07 yangyh 阅读(1590) 评论(1) 推荐(0) 编辑
  2011年4月29日
摘要: 至于很多朋友说这道题快排为什么不行,请看qcmp函数,返回1与-1 // Rader.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <algorithm> #include <math.h> #include <iostream> using namespace ... 阅读全文
posted @ 2011-04-29 20:19 yangyh 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include <stdafx.h> #include <iostream> #define MAX_STATE 65535 #define ALL_BLACK 65535 #define ALL_WHITE 0 #define WIDTH 4 #define HEIGTH 4 #define SIZE_OF_BOARD WIDTH*HEIGTH #include <queue> using n... 阅读全文
posted @ 2011-04-29 13:50 yangyh 阅读(220) 评论(0) 推荐(0) 编辑
  2011年4月18日
摘要: 有几种不同的方式来引导虚拟机,各有利弊。 1.BIOS bootloader 适用于全虚拟化,loader模拟了BIOS 原文: Booting via the BIOS is available for hypervisors supporting full virtualization. In this case the BIOS has a boot order priority (flop... 阅读全文
posted @ 2011-04-18 12:52 yangyh 阅读(3663) 评论(1) 推荐(0) 编辑
  2011年3月20日
摘要: 写在前面:对于可选参数一定要使用以下两种方法标明其值 –wValue 或--who==Value 而不能是 --who Value,而对于必填参数则可以使用-lValue 或 --love Value或--love=Value,这并不是bug.//============================================================================// Name : TestOpt.cpp// Author : yangyh// Version :// Copyright : Your copyright notice// Descriptio 阅读全文
posted @ 2011-03-20 23:00 yangyh 阅读(715) 评论(1) 推荐(1) 编辑
  2011年1月19日
摘要: 功能:读取二进制文件,转化为BASE64编码字符串,文件会增大1/3,详见BASE64编码原理,这样就可以在帖子中保存文件了,没办法,公司不许上传附件,POST也只能一次6KB,之前还写了一个模拟HTTP发送的程序(http://www.cnblogs.com/yangyh/archive/2010/07/21/1781845.html),实为CNBLOG的小组自动提交程序,不过现在CNBLOG添加了防ROBOT功能了,一次只能发32帖了 阅读全文
posted @ 2011-01-19 21:52 yangyh 阅读(2380) 评论(0) 推荐(0) 编辑
  2011年1月7日
摘要: 这是设计^ ^ 不知道有没有BUG1 []里的肯定是条件表达式2 /后紧跟元素名 再紧跟的肯定是条件表达式或无或.属性3 表达式中有类似element.attribute = 表示本层中(nextsibling)元素的属性值,否则element=表示元素的text4 text(root/vrs/vr[vr.psn=abc&&vr.lsn:int=dd]) text(root/vrs/vr[vr.psn=abc&&vr.lsn:float=dd]) text(root/vrs/vr[vr.psn=abc&&vr.lsn=dd])默认为字符串比较 接下来表达式解析,对于运算符的解析还没有好方法(关 阅读全文
posted @ 2011-01-07 21:46 yangyh 阅读(324) 评论(0) 推荐(0) 编辑
  2010年12月28日
摘要: KEY: CreateProcessAsUser, service GUI interactive, C++ 启动进程用于xp,server 2003,不适用于vista以上(http://blog.csdn.net/zhyRzfirst/archive/2009/03/16/3994344.aspx,http://www.codeproject.com/KB/vista-security/VistaSessions.aspx,可遍历WTSEnumerateSessions获取活跃桌面后设置STARTUPINFO参数中的lpDesktop参数)CreateProcessAsUser 1314错 阅读全文
posted @ 2010-12-28 23:12 yangyh 阅读(2330) 评论(2) 推荐(1) 编辑
  2010年12月22日
摘要: 导入js文件:http://files.cnblogs.com/yangyh/json2.js 阅读全文
posted @ 2010-12-22 21:12 yangyh 阅读(993) 评论(0) 推荐(0) 编辑
  2010年12月20日
摘要: 代码config.properties放在src根目录下 阅读全文
posted @ 2010-12-20 19:00 yangyh 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页