码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
C语言之关键字
1. C99标准规定了如下关键字:auto _Bool break case char _Complexconst continue default restrict do ...
分类:编程语言   时间:2014-05-10 02:27:27    阅读次数:422
转:一个java教程各章节的链接
Java概述,Java是什么?Java环境变量设置Java基本语法Java对象和类Java基本数据类型Java变量类型Java修饰符类型Java基本运算符Java循环for, while和do...whileJava决策制定Java Numbers类Java String类Java数组Java日期时...
分类:编程语言   时间:2014-05-10 00:49:04    阅读次数:415
Linux Commands 彻底研究(02):mkdir
NAME mkdir - make directoriesSYNOPSIS mkdir [OPTION]... DIRECTORY...DESCRIPTION Create the DIRECTORY(ies), if they do not already ex...
分类:系统相关   时间:2014-05-10 00:10:10    阅读次数:411
C语言实现状态设计模式
#include #include #include #ifndef VIRTUAL #define VIRTUAL #endif #ifndef DELETE #define DELETE(X) do { free(X);X = NULL; } while(0) #endif #define NEW(TYPE,pInstance,SUBTYPE) struct TYPE* pInst...
分类:编程语言   时间:2014-05-09 22:29:48    阅读次数:455
分行模块,自动识别英文和型号数[推荐精华]
Function cuttextlen(intext, lens) If Len(intext) cuttextlen = intext Else tmptext = intext GetTexts = "" Do While Not Len(tmptext) GetTexts = GetTexts + Left(tmptext, lens) tmptext = Right...
分类:其他好文   时间:2014-05-09 22:22:08    阅读次数:320
Lua 常用库函数
一、数学库 1. 随机数 math.randomseed(os.time());   -- 设置随机种子    for i=1, 100 do     print(math.random(-1000,1000));   -- 随机区间 [-1000,1000], math.random(1000) 表示 [1,1000] end; 2. 最大,最小值 math.max...
分类:其他好文   时间:2014-05-09 20:58:11    阅读次数:669
centOS设为文本启动方式
centOS图形界面需要点用系统大量的内存和CPU资源,对于服务器而言,高效率是最重要的,因此将Centos 默认启动改为文本方式。 在终端中输入: vi /etc/inittab 有段说明文字: # Default runlevel. The runlevels used by RHS are: #   0 - halt (Do NOT set initdefault to...
分类:其他好文   时间:2014-05-09 14:02:50    阅读次数:327
[容斥原理] zoj 3556 How Many Sets I
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4535 How Many Sets I Time Limit: 2 Seconds      Memory Limit: 65536 KB Give a set S, |S| = n, then how many ordered set g...
分类:其他好文   时间:2014-05-09 13:50:00    阅读次数:347
Leetcode:Set Matrix Zeroes
戳我去解题Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.这题还是很简单的,就是有点坑,遍历矩阵的时候,每遇到0的时候,我们不能立即将所在行和列置0,否则,到最后矩阵所有...
分类:其他好文   时间:2014-05-09 08:51:57    阅读次数:253
创建存储过程向表中循环添加数据
CREATE PROCEDURE dowhile() BEGIN  DECLARE n int; set n=1; WHILE n do INSERT into hasindex(num) VALUES (n); set n=n+1; END WHILE; END; CALL dowhile();...
分类:其他好文   时间:2014-05-09 01:04:44    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!