码迷,mamicode.com
首页 >  
搜索关键字:while loop    ( 31405个结果
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
归并排序
#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
Oracle中字符缓冲区相关错误
一、buffer overflow,limit of 10000 bytes declare begin for c in 1..1000 loop  dbms_output.put_line('测试测试测试'); end loop; end; 缓冲区默认大小为10000 bytes。循环1000次一共有6000个汉字,也就是12000 bytes。在SQL窗口的输出标签页可设置缓冲...
分类:数据库   时间:2014-05-26 06:14:00    阅读次数:333
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
c 实现的 循环队列
// // fs_loop_queue.h // fsnet // // Created by Vincent on 14-5-22. // Copyright (c) 2014年 Vincent. All rights reserved. // #ifndef fsnet_fs_loop_queue_h #define fsnet_fs_loop_queue_h #include "...
分类:其他好文   时间:2014-05-24 23:36:41    阅读次数:450
从一道面试题(死循环里分配内存)阐述Linux的内存管理
int cnt = 0; while(1) { ++cnt; ptr = (char *)malloc(1024*1024*128); if(ptr == NULL) { printf("%s\n", "is null"); break; } } printf("%d\n", cnt); 这个程序会有怎样的输出呢?...
分类:系统相关   时间:2014-05-24 21:59:47    阅读次数:479
linux $* $@ 特定位置参数
举例说:脚本名称叫test.sh 入参三个: 1 2 3运行test.sh 1 2 3后$*为"1 2 3"(一起被引号包住)$@为"1" "2" "3"(分别被包住)$#为3(参数数量)如脚本:#!/bin/shfor loop in "$*" do echo $loop done输出循环一...
分类:系统相关   时间:2014-05-24 10:09:30    阅读次数:304
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!