码迷,mamicode.com
首页 >  
搜索关键字:do while    ( 38720个结果
something about basic usage of vector,queue
1.for a two dimension vector, we must assign at least the first dimension of the vector2.each dimension of an inner vector can be different3.if you do...
分类:其他好文   时间:2014-04-30 18:47:20    阅读次数:549
Thair数 树状数组
题目:Erwin最近对一种叫"thair"的东西巨感兴趣。。。在含有n个整数的序列a1,a2......an中,三个数被称作"thair"当且仅当i k do dec(j); 32 if i j); 40 if i 0) do 59 begin 60 in...
分类:其他好文   时间:2014-04-30 14:58:46    阅读次数:501
WebMatrix Database.Open… Close() and Dispose()
ASP.NET Web Pages framework examples of the Database helper do not include calls to Close or Dispose because the framework itself is designed to call ...
分类:数据库   时间:2014-04-30 14:08:51    阅读次数:629
输入与enter
#includeusing namespace std;int main(){ char a,b,c; while(scanf("%c%c%c",&a,&b,&c)!=EOF) { getchar(); cout<<a<<b<<c<<endl; } retur...
分类:其他好文   时间:2014-04-30 14:00:36    阅读次数:346
九的余数
#include#include#include#include #includeusing namespace std;char c[1000005];int main(int argc, char* argv[]){ int n; scanf("%d", &n); while(n--) { .....
分类:其他好文   时间:2014-04-29 16:31:46    阅读次数:286
c语言程序设计第一章3
字符数组是C语言中最常用的数组类型。下面我们通过编写一个程序,来说明字符数组以反操作字符数组的函数的用法。该程序读入一组文本行,并把最长的文水行打印出来。该算法的基本框架非常简单: while (还有未处理的行) i f (该行比已处理的最长行还要长) 保存该行 保存该行的长度 打印最长的...
分类:编程语言   时间:2014-04-29 15:50:20    阅读次数:506
程序流程控制
Java语言中提供了4类程序控制语句,来描述流程: 1.选择语句:if-else,switch, 2.循环语句:while,do-while,for 3.跳转语句 break,continue 4.异常处理语句:try-catch-finally,throw 1、选择语句意思是根据某种...
分类:其他好文   时间:2014-04-29 15:23:40    阅读次数:463
java中句子
今天主要学习了循环语句和跳转语句。首先是while,它是先验循环,就是先验证在循环,所以有可能出现死循环或是一次都没有循环过。语法结构为:while(布尔表达式){循环体 } 后验循环do-while,是先执行再检验。其语法结构为:do{ ...
分类:编程语言   时间:2014-04-29 14:55:49    阅读次数:528
分数拆分
//现在输入一个正整数k,找到所有的正整数x>=y,使得1/k=1/x+1/y.#includeusing namespace std;int main(){ int n; //测试数据组数 cin>>n; int y; double x; while(n--) ...
分类:其他好文   时间:2014-04-29 09:38:47    阅读次数:360
成绩转换
#includeusing namespace std;int main(){ int N; //测试数据组数 cin>>N; while(N--) { int M; //百分制成绩 cin>>M; int a=M/10; ...
分类:其他好文   时间:2014-04-29 09:38:47    阅读次数:409
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!