码迷,mamicode.com
首页 >  
搜索关键字:void 0    ( 62627个结果
java4android (基本概念)
1.环境变量的配置:path键 值:bin文件夹的位置 classpath键 值:.2.第一个HelloWorld:public class Hello{ public static void main(String args[]){ System.out.print("Hello World!"....
分类:移动开发   时间:2014-05-17 21:41:13    阅读次数:460
java 中Handler 和Runnable 的使用 异步发送消息 转
public class MainActivity extends Activity { TextView text1, text2; Button button; Thread th; @Override protected void onCreate(B...
分类:编程语言   时间:2014-05-17 21:30:11    阅读次数:351
[游戏模版8] Win32 透明贴图
>______<:MyPaint(...)1 void MyPaint(HDC hdc)2 {3 SelectObject(mdc,bg);4 BitBlt(hdc,0,0,1366,768,mdc,0,0,SRCCOPY);//在窗口位置、大小、原图剪切位5 6 Selec...
分类:Windows程序   时间:2014-05-17 20:56:37    阅读次数:395
c#学习7.索引
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 索引{ class Program { static void Main(string[]...
分类:其他好文   时间:2014-05-17 20:10:36    阅读次数:254
编程之美2.17 数组循环移位
问题描述:设计一个算法,把一个含有N元素的数组循环左移或者右移K位。解决方法:1. 暴力解法------O(KN)2. 颠倒位置------O(N)具体思路和代码:1. 暴力解法------O(KN)思路:循环K次,每次移动一位代码: 1 //右移 2 void s1(int A[], int n,...
分类:其他好文   时间:2014-05-17 20:07:57    阅读次数:257
面向对象基础(四)
1. 函数的重载2. 构造函数的作用1. 函数的重载 Chongzai.java class Chongzai{ void funA(){ System.out.println("没有参数的funA函数"); } void funA(int i){ System.out.pr...
分类:其他好文   时间:2014-05-17 19:11:44    阅读次数:272
this的使用方法
1. this调用成员变量和成员函数2. this调用构造函数1. Person.java public class Person{ String name ; void talk(){ System.out.println("my name is " + this....
分类:其他好文   时间:2014-05-17 19:02:37    阅读次数:229
Java Multi-Thread
1. 2种实现方法: thread类和runnable接口extends Theadpackage demo1;class Runner extends Thread { @Override public void run() { for (int i=0;i list1 ...
分类:编程语言   时间:2014-05-17 18:51:36    阅读次数:417
观察者设计模式
/** * 事件接口 即被观察者 * * @author Host * */ public interface Event { void attach(Listener listener); void detach(Listener listener); void notifyListener();...
分类:其他好文   时间:2014-05-17 18:33:38    阅读次数:423
ASIHTTPRequest学习笔记
1、creating requestsrequest分为同步和异步两种。不同之处在于开始request的函数:[request startSynchronous];[request startAsynchronous];其中,异步的request构造方式如下:- (void) grabURLs{NS...
分类:其他好文   时间:2014-05-17 18:31:28    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!