码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
20140527 希尔排序
#includevoid ShellSort(int *a,int length){ int jump=length; int temp=0; int change=1; while(jump>0) //while1 { jump=jump/2; change=1; /***************...
分类:其他好文   时间:2014-06-07 03:53:30    阅读次数:243
Sqrt(x)
Implementint sqrt(int x).Compute and return the square root ofx.classSolution{public:intsqrt(intx){inti=0;intstep=1;while(step>0){while((i+step)>1);}r...
分类:其他好文   时间:2014-06-04 19:54:17    阅读次数:214
CPU与IRP的一些相关函数
VOIDKiAdjustIrpCredits ( VOID )其中 Number = KeNumberProcessors;Prcb = KiProcessorBlock[Index];多核情况下调整每个CPU的IRP对象配额。在while (Index Lookaside...
分类:其他好文   时间:2014-06-03 11:35:52    阅读次数:254
【HDOJ】1394 Minimum Inversion Number
逆序数的性质。1. 暴力解 1 #include 2 3 #define MAXNUM 5005 4 5 int a[MAXNUM]; 6 7 int main() { 8 int n; 9 int i, j, sum, min;10 11 while (scanf(...
分类:其他好文   时间:2014-05-31 07:50:50    阅读次数:170
poj 1011 Sticks
DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to ...
分类:其他好文   时间:2014-05-30 23:00:32    阅读次数:395
FOJ_Problem 1587 成绩统计
水题,不过要想0ms过还是有个技巧的:#include #include using namespace std;int main(){ int score[101]; int t,t1,temp; while(cin>>t) { //memset(score,...
分类:其他好文   时间:2014-05-30 16:53:11    阅读次数:268
php函数整理
phpusleep() 函数延迟代码执行若干微秒。unpack() 函数从二进制字符串对数据进行解包。uniqid() 函数基于以微秒计的当前时间,生成一个唯一的 ID。time_sleep_until() 函数延迟代码执行直到指定的时间。time_nanosleep() 函数延迟代码执行若干秒和纳...
分类:Web程序   时间:2014-05-30 10:43:03    阅读次数:452
Random 产生一个int数组,长度为100,并向其中随机插入1-100,并且不能重复。
做法1: List list = new List(); Random rand = new Random(); while (list.Count =1,=0,<100 之间的随机数m、n,颠倒arr[m]和arr[n]的数。 int[] arr = new int[100]; //把100个数顺...
分类:其他好文   时间:2014-05-30 04:27:12    阅读次数:208
解决SQL Server管理器无法连接远程数据库Error: 1326错误
解决SQL Server管理器无法连接远程数据库Error: 1326错误我们在在使用SQL Server时都会遇到使用SQL Server Management Studio无法连接远程数据库实例的问题,错误描述信息摘录如下:An error has occurred while establis...
分类:数据库   时间:2014-05-29 20:50:49    阅读次数:404
解决VNC中tab键无效的方法
http://ubuntuforums.org/archive/index.php/t-1771058.htmlI accidentally discovered a fix for this while trying to solve a different problem.edit~/.conf...
分类:其他好文   时间:2014-05-29 15:00:26    阅读次数:623
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!