搜索到与相关的文章
编程技术

一个关于快排的问题

做1306的sortingalgorithm的时候一开始写的快排超时了然后用ilovenwd师兄提供了下面的快排才过了你快排写得不好.试试一组1000000个0的数据.参考一下下面这个voidquick_sort(int*a,intn)...{inti=0,j=n-1;intx=a[n/2];while(i<=j)...{while(a[i]x)j--;if(i<=j)swap(a[i],a[j]),+

系统 2019-08-29 23:17:00 2815

编程技术

CIH病毒简介

特征:该计算机病毒属于W32家族,感染Windows95/98中以EXE为后缀的可行性文件。它具有极大的破坏性,可以重写BIOS使之无用(只要计算机的微处理器是PentiumIntel430TX),其后果是使用户的计算机无法启动,唯一的解决方法是替换系统原有的芯片(chip),该计算机病毒于4月26日发作,它还会破坏计算机硬盘中的所以信息。该计算机病毒不会影响MS/DOS、Windows3.x和WindowsNT操作系统。传播途径:CIH可利用所有可能的途

系统 2019-08-29 23:02:00 2815

C#

红外条码扫描器的另类使用C#版

3年前写了一篇《USB口的红外条形码扫描器的另类使用》,不过相关代码是VB编写,在这几年之间,有许多网友提出需要C#版的,起初还以为由VB修改C#应该很容易,最近研究了一下,发现C#和VB调用API的机制还是有所不同的,在迁移的过程中还是会遇到不少问题,所以我专门抽时间做了一个基于C#的程序。【目前的条形码扫描器有点类似外接键盘(其实从消息传送上它就相当于一个键盘),把输入焦点定位到可输入的控件上,一扫描相应的条形码信息就输入到文本框中去了,但是如果没有输

系统 2019-08-29 22:37:01 2815

编程技术

eclipse中格式化代码快捷键Ctrl+Shift+F失效的

文章摘抄至http://blog.csdn.net/abbuggy/article/details/7016185很长一段时间我的eclipse都有个毛病,就是当我要格式化代码的时候,右键-source-format能够起效,但ctrl+shift+f不好使了。可以基本断定是快捷键与别的软件冲突了,但一直也没时间排查一下。google之后来发现是搜狗输入法惹的祸。原来是和“简繁体快捷键”冲突了。输入法中的这个快捷键我们一般不用,小勾勾去掉就成了。eclip

系统 2019-08-29 22:10:24 2815

C#

简单C#数据库操作类

usingSystem;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.U

系统 2019-08-12 01:54:05 2815

Tomcat

在tomcat中运行solr-4.3.0

下载solr4.3,tomcat,解压等操作不必多说.将解压后的solr下的dist目录中的solr-4.3.0.war,copy到tomcat的webapps目录中,并改名为solr.warSolrusesUTF-8fileencoding.ThatmeansthatweneedtoensurethatApacheTomcatwillbeinformedthatallrequestsandresponsesmadeshouldusethatencodin

系统 2019-08-12 01:33:39 2815

各行各业

Understand and code analayise software the s

SciTools.com-CustomerSupportFrequentlyAskedQuestionsUnderstand1.WhatarethesystemrequirementsforUnderstand?2.HowdoIresetUnderstandtothedefaultsettings?3.CanIrunUnderstandona64bitOS?4.CanIintegrateUnderstandwithmyVersionControlSyste

系统 2019-08-12 01:33:23 2815

Linux

linux命令行挂载U盘拷贝文件 - [系统技术]

创建一个文件夹mkdir/mnt/usb挂载U盘挂u盘之前,运行命令cat/proc/partitions,看看现在系统中有哪些分区。插上u盘以后,再次运行上述命令,看看多出来什么分区(通常是sda1,PS由于偶是在虚拟机下装的,所以是sdb1).1、插入U盘2、输入fdisk-l/dev/sda查看输出结果,比如我的是这样的:#fdisk-l/dev/sdaDisk/dev/sda:131MB,131104768bytes3heads,32sectors

系统 2019-08-12 01:33:12 2815

操作系统

byobu in Launchpad

byobuinLaunchpadbyobuOverviewCodeBugsBlueprintsTranslationsAnswersRegistered2008-12-14byDustinKirklandByobuisaJapanesetermfordecorative,multi-panelscreensthatserveasfoldingroomdividers.Asanopensourceproject,Byobuisanelegantenhance

系统 2019-08-12 01:33:11 2815