码迷,mamicode.com
首页 >  
搜索关键字:while if else    ( 50281个结果
杭电 2012
1 #include 2 3 using namespace std; 4 5 int is_prime(int ); 6 int main() 7 { 8 int x,y,val; 9 while (cin>>x>>y && x||y)10 {11 ...
分类:其他好文   时间:2014-05-16 22:43:26    阅读次数:335
Oracle的decode、sign、trunc函数
原文http://knowyouknowme.iteye.com/blog/574974一、decode在Oracle/PLSQL中,decode具有和 IF-THEN-ELSE 一样的功能。decode函数语法如下:decode( expression , search , result [, s...
分类:数据库   时间:2014-05-16 20:41:51    阅读次数:540
【Exception】 java.lang.NoSuchMethodError: android.app.AlertDialog$Builder.setOnDismissListener
f(Build.VERSION.SDK_INT >10) builder =newAlertDialog.Builder(getActivity(), R.style.Theme.Sherlock.Dialog);else builder =newAlertDialog.Builder(...
分类:移动开发   时间:2014-05-16 07:49:31    阅读次数:606
shell note
死循环while :do# do somethingdone
分类:其他好文   时间:2014-05-16 06:16:36    阅读次数:227
杭电 2024
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int n; 8 string str; 9 int flag;10 while (cin>>n)11 {12 ...
分类:其他好文   时间:2014-05-16 06:05:15    阅读次数:377
杭电2025
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 string str=""; 8 string str2=""; 9 char max;10 while (getline(ci...
分类:其他好文   时间:2014-05-15 16:20:41    阅读次数:258
cocos2dx 编译错误 BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following
BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following erroroccurred while executing this line:G:\android\SDK\android-sdk-windows\tools\ant\build.xml:683: null returned:...
分类:移动开发   时间:2014-05-15 04:48:27    阅读次数:647
hdu 最小公倍数
/* * hdu 最小公倍数 * date 2014/5/13 * state AC */ #include using namespace std; int gcd(int x,int y) { while(x!=y) { if(x>y)x=x-y; else y=y-x; } return x; } int main() ...
分类:其他好文   时间:2014-05-14 14:29:59    阅读次数:225
欧几里德(辗转相除发)算法
辗转相除,又名欧几里德算法(Euclidean algorithm)乃求两个正整数之最大公约数的算法。此处用函数的递归调用编写了一个小程序:int gcd(int a,int b){ if(a%b==0) return b; else return gcd(b,a%b)...
分类:其他好文   时间:2014-05-14 10:20:27    阅读次数:241
杭电2019
1 #include 2 using namespace std; 3 4 int main() 5 { 6 int a[110] = {0};//已经排好的 7 int n,m; 8 while (cin>>n>>m && n||m) 9 {10 ...
分类:其他好文   时间:2014-05-14 09:43:38    阅读次数:407
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!