码迷,mamicode.com
首页 >  
搜索关键字:scala for if match while    ( 37974个结果
快速排序算法
快速排序算法。python实现。 1 # -*- coding: utf8 -*- 2 3 import random 4 5 def partition(mylist, low, high): 6 pivotkey = mylist[low] 7 while low = piv...
分类:其他好文   时间:2014-05-17 01:25:40    阅读次数:305
杭电2014
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int n; 8 double max,min,sum,aver; 9 double a[110] = {0};10 while...
分类:其他好文   时间:2014-05-16 22:47:35    阅读次数:452
杭电 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
strcat strcpy strlen
1 char * strcat(char * dest, const char * src) { 2 assert(dest != NULL && src != NULL); 3 char * p = dest; 4 while (*p) 5 p++; 6 ...
分类:其他好文   时间:2014-05-13 20:30:10    阅读次数:272
杭电2007
1 #include 2 using namespace std; 3 4 int ji(int); 5 int ou(int); 6 int main() 7 { 8 int m,n,x,y; 9 while (cin >> m >> n)10 {11 ...
分类:其他好文   时间:2014-05-13 20:24:09    阅读次数:255
杭电 2004
1 #include 2 using namespace std; 3 char grand(int); 4 int main() 5 { 6 int n; 7 while (cin>> n) 8 { 9 if (n>100 || n<0)10 ...
分类:其他好文   时间:2014-05-13 19:58:21    阅读次数:327
MATLAB数据处理快速学习教程
转自:http://blog.csdn.net/abcjennifer/article/details/7706581本篇内容集合了MATLAB中的基本操作、数据存储与计算、数据的直线与曲线拟合与画图、for-if-while语句的使用方法对一般matlab的操作进行了基本和详细的应用举例,非常适合...
分类:其他好文   时间:2014-05-13 19:41:00    阅读次数:443
Android(3)
1.电话拨号器: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" a...
分类:移动开发   时间:2014-05-13 15:08:57    阅读次数:508
读取本地图片写到jsp页面
//读取本地图片写到jsp页面Filefile=newFile("D:/parking/A区12号.jpg");ServletOutputStreamout=null;InputStreamin=null;try{in=newFileInputStream(file);response().setContentType("multipart/form-data");inttempbyte;out=response().getOutputStream();while((tempbyte=..
分类:Web程序   时间:2014-05-13 13:15:20    阅读次数:305
iOS 后台运行
Apps that play audible content to the user while in the background, such as a music player app (音频,如音乐播放)Apps that keep users informed of their locati...
分类:移动开发   时间:2014-05-13 10:54:43    阅读次数:441
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!