- 军军小站|张军博客
搜索到与相关的文章
各行各业

POJ 2377 Bad Cowtractors

这是先前做的几道最小生成树的题目,基本都是裸题。题意:求最大生成树由于数据比较水,用prime和krusical都可以。我是用krusical做的#include#include#include#include#includeusingnamespacestd;intn,m,f[1010];structnode{intx,y,s;}e[20010];boolcmp(n

系统 2019-08-12 09:27:32 3036

C++

【译】C++ 内存池 -- C++ Memory Pool .

转自:http://blog.csdn.net/060/article/details/1326025这是我翻译的文章,来自CodeProject,原文作者:DanDanger2000.原文链接:http://www.codeproject.com/cpp/MemoryPool.aspC++内存池l下载示例工程–105Kbl下载源代码–17.3Kb目录l引言l它怎样工作l示例l使用这些代码l好处l关于代码lToDol历史引言C/C++的内存分配(通过mal

系统 2019-08-29 23:01:17 3035

编程技术

ExtJS GridPanel表头错位和自适应宽度的解决方法

1、ExtJS2.2中,Ext.grid.GridPanel在IE中表头的图标会发生错位,如图所示:但是在Firefox中显示是正常的。解决方法为:在所用到的css文件中添加代码,.ext-ie6.x-menu-item-icon,.ext-ie7.x-menu-item-icon,.ext-ie8.x-menu-item-icon{left:-24px;}2、Ext.grid.GridPanel在IE中的宽度太大,而且不能自适应宽度,解决方法见如下的一段

系统 2019-08-12 09:30:15 3035

IOS

iOS Open Source : Popover API for iPhone

http://iphonedevelopertips.com/open-source/ios-open-source-popover-api-for-iphone-wepopover.htmlWEPopoverisanAPIthatmirrorsUIPopoverfortheiPad.Thisclassisintentionallydesignedtohavethesameinteraction,lookandfeelasthepopovereffecto

系统 2019-08-12 09:29:53 3035

编程技术

微软数据访问应用程序块2.0

微软数据访问应用程序块(MicrosoftDataAccessApplicationBlock):http://msdn.microsoft.com/zh-cn/library/aa480458.aspx2.0:EarlierRelease:DataAccessApplicationBlock2.0(pre-EnterpriseLibrary)2.0下载地址:http://www.microsoft.com/download/en/confirmation

系统 2019-08-12 01:32:21 3035

Python

New Book - Programming in Python 3

Finallygotmyhandsonthebrandnew"ProgramminginPython3-ACompleteIntroductiontothePythonLanguage".AsfarasIknow,thisisthefirstprintbookcoveringPython3.0(Python3000).Aquickskimlookedpromising.NewBook-ProgramminginPython3

系统 2019-08-29 23:44:58 3034

各行各业

selenium Webdriver 截图

在使用Selenium做自动化时,有的时候希望失败了进行截图,下面提供一个封装的截图方法,方便使用,代码如下://只需要传入文件名字即可,而这个名字大家可以直接使用测试的方法名publicvoidcaptureScreenshot(StringfileName){StringdirName="screenshot";if(!(newFile(dirName).isDirectory())){newFile(dirName).mkdir();}SimpleD

系统 2019-08-12 09:27:03 3034

Android

【Android Developers Training】 107. 认知用

注:本文翻译自Google官方的AndroidDevelopersTraining文档,译者技术一般,由于喜爱安卓而产生了翻译的念头,纯属个人兴趣爱好。原文链接:http://developer.android.com/training/location/activity-recognition.html样例代码:ActivityRecognition.zip行为认知会尝试检测当前用户的物理行为,比如:行走,驾驶或者静止站立。从一个行为认知客户端发出更新信

系统 2019-08-12 01:54:41 3034

编程技术

Mobile2Market 应用程序合格证

获得Mobile2Market(M2M)合格证将为您的产品带来巨大的市场机会,并被允许在产品的市场材料中使用"DesignedforWindowsMobile"商标。"'DesignedforWindowsMobileVersion6"合格证是针对最新的WindowsMobile操作系统而推出的,要求更加严格,通过这个认证的WindowsMobile应用程序需要具备较高的质量。从这里可以下载DesignedforWindowsMobile6Standard

系统 2019-08-29 23:20:26 3033