码迷,mamicode.com
首页 >  
搜索关键字:scala for if match while    ( 37974个结果
使用Android-smart-image-view加载网络图片
界面效果 应用的权限   布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andr...
分类:移动开发   时间:2014-06-03 00:45:02    阅读次数:303
Iterative (non-recursive) Quick Sort
An iterative way of writing quick sort: #include #include #include using namespace std; void quickSort(int A[], int n) { stack> stk; stk.push(make_pair(0, n-1)); while (!stk.empty()) { pair ...
分类:其他好文   时间:2014-06-03 00:16:43    阅读次数:357
解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https”      解决方法:      编辑.git目录下的config文件即可。 vim .git/config #修改对于的配置 #原来的url = https://github.com/elitecodegr...
分类:数据库   时间:2014-06-03 00:03:44    阅读次数:349
Nio学习4——EchoServer在Io,Nio,Nio.2中的实现
阻塞IO实现: public class PlainEchoServer { public void serve(int port) throws IOException { final ServerSocket socket = new ServerSocket(port); try { while (true) { final Socket clientSocket...
分类:其他好文   时间:2014-06-02 23:32:20    阅读次数:357
nyoj 找球号三(除了一个数个数为基数,其他为偶数,编程之美上的)
#include#includeusing namespace std;int main(){ int len; while(cin>>len) { int ans; len--; cin>>ans; while(len--) { int a; cin>>a; ...
分类:其他好文   时间:2014-06-02 19:59:57    阅读次数:190
java-第五章-do{}while()升级菜单切换
importjava.util.Scanner; publicclassA04{ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub Scannerinput=newScanner(System.in); System.out.println("欢迎使用MyShopPing管理系统"); System.out.println("\n********************************..
分类:编程语言   时间:2014-06-02 14:44:48    阅读次数:378
java-第五章-while升级购物结算升级版
importjava.util.Scanner; publicclassA03{ /** *@paramargs */ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub Scannerinput=newScanner(System.in); System.out.println("****************************************"); System.out.print..
分类:编程语言   时间:2014-06-01 16:42:08    阅读次数:335
java-第五章-计算100以内(包括100)的偶数之和
publicclassA01{ /** *@paramargs */ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub intsum=0; intnum=2; while(num<=100){ sum+=num; num+=2; } System.out.println(sum); } }
分类:编程语言   时间:2014-06-01 16:35:36    阅读次数:552
scala 语法要点
前段时间看了下scala做了下笔记,为后续看spark做点准备,笔记内容见图片。...
分类:其他好文   时间:2014-06-01 15:35:40    阅读次数:182
Android应用程序中的多个Activity的显示创建和调用
布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="...
分类:移动开发   时间:2014-06-01 04:04:04    阅读次数:490
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!