码迷,mamicode.com
首页 >  
搜索关键字:while break continue    ( 40024个结果
php 遍历文件及文件夹
\n"; while($file = $mydir->read()) { if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")) { echo "$fi...
分类:Web程序   时间:2014-05-26 14:22:05    阅读次数:239
数据结构大作业中遇到的问题及解决(一)
(一) 判断二进制末尾 ff.seekg(0,ios::end) ; 可以找到末尾,但是那里没有内容。 我们用 int END =ff.seekg(0,ios::end) ; 记录这个位置 。 然后 pos = ff.tellg(); if(pos == END) break ; 这样就避免读到非法...
分类:其他好文   时间:2014-05-26 12:19:37    阅读次数:244
C语言-回溯例3
排列问题1、实现排列A(n,m)对指定的正整数m,n(约定11) i--; /* 回溯 */ if(a[i]==n && i==1) break; /* 退出循环,结束 */ else a[i]=a[i]+1;}4、代码实现 1 #include 2 #include 3 4 int mai...
分类:编程语言   时间:2014-05-26 12:18:53    阅读次数:242
归并排序
#includeusing namespace std;///算法重要,但是思想更重要 void MemeryArray(int a[],int n,int b[],int m,int c[])///经典框架,be careful!{ int i,j,k; i = j = k = 0; while(...
分类:其他好文   时间:2014-05-26 11:22:57    阅读次数:204
JS类似Java String.format的函数
String.prototype.format = String.prototype.f = function () { var s = this, i = arguments.length; while (i--) { s = s.replace(new R...
分类:编程语言   时间:2014-05-26 10:49:23    阅读次数:356
Post These Up-Close Shots Of The Runway Bags
Here are some tips to guide you while shopping discount LV bags online. Look at the rack bag. Before you go out and buy handbags online, it is good to...
分类:其他好文   时间:2014-05-26 10:26:29    阅读次数:279
堆排序
#include#include#includeusing namespace std; //void MinHeapFixup(int a[], int i)//{// int j ,temp;// temp = a[i];// j = (i-1)/2;// while(j >= 0 && i !...
分类:其他好文   时间:2014-05-26 10:26:08    阅读次数:212
javascript中的数据结构
Javascript中的关键字abstract continue finally instanceof private thisboolean default float int public throwbreak do for ...
分类:编程语言   时间:2014-05-26 08:29:39    阅读次数:365
月球美容计划之图的储存结构汇总
SJ图论很流弊,为了省赛队里知识尽量广,我就直接把图continue,现在回顾起来丫的全忘了,从头开始吧。 先写写图的存储,再写写最小生成树和最短路的几个经典算法,月球美容计划就可以结束了。0 0,拖了好久,还有很多内容要写。- - 这次总结了邻接矩阵,邻接表,十字链表,邻接多重表,边集数组,这5种常用的图的储存结构,也许能当模板用吧。...
分类:其他好文   时间:2014-05-26 04:59:36    阅读次数:170
c语言快速判断一个数是偶数还是奇数
#include int main() { int a; while(1) { printf("please input the number:\n"); scanf("%d",&a); if(a&1) { printf("%d是奇数\n",a); } else { printf("%d是偶数\n",a); } } return 0; }这...
分类:编程语言   时间:2014-05-26 03:36:15    阅读次数:367
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!