1、IO的例子/* 字节IO */ public void byteIO() throws FileNotFoundException, IOException { FileInputStream fin = new FileInputStream(new File( ...
分类:
编程语言 时间:
2015-11-24 22:01:15
阅读次数:
202
效果图:方法解析:增大/降低音量值public void adjustStreamVolume(int streamType, int direction, int flags)设置音量值public void setStreamVolume(int streamType, int index, int flags)参数介绍streamType是需要调整音量的类型,可以是:
ST...
分类:
其他好文 时间:
2015-11-24 21:16:36
阅读次数:
150
非模板友元templateclass HasFriend{public: friend void report(HasFriend&);};// the following code is necessaryvoid report(HasFriend& hf){ //details}voi...
分类:
其他好文 时间:
2015-11-24 21:09:36
阅读次数:
130
内部类的访问规则:1,内部类可以直接访问外部类中的成员,包括私有。2,外面类要访问内部类,必须建立内部类对象。public class Outer { private int x=3; class Inner{ void function(){ ...
分类:
其他好文 时间:
2015-11-24 21:08:41
阅读次数:
116
UIWebView和网页的交互(OC中调执行JS)- (void)viewDidLoad{[super viewDidLoad];// 1.webViewUIWebView *webView = [[UIWebView alloc] init];webView.frame = self.view.b...
分类:
移动开发 时间:
2015-11-24 21:07:24
阅读次数:
147
void quickSort( int left, int right, int *arr){ int i, j, temp; if ( left >= right ) return; temp = arr[left]; i = left; j = right; while ( i != j ) {...
分类:
编程语言 时间:
2015-11-24 20:24:51
阅读次数:
124
界面类的对象一般都是可以接触点击事件的,只不过有的默认接受,有的需要设定属性。userInteractionEnabled属性设置为YES的时候就可以接受点击事件了 -(void)touchesBegan:(NSSet*) touches withEvent:(UIEvent*) event- (....
分类:
其他好文 时间:
2015-11-24 20:14:04
阅读次数:
118
瓦片地图-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ CCNode* node = [self getChildByTag:TileMapNode]; CCTMXTiledMap* tileMap ...
分类:
编程语言 时间:
2015-11-24 16:14:02
阅读次数:
205
原文 :http://blog.csdn.net/yyyuhan/article/details/31532901.概述 许多初学者对C/C++语言中的void及void指针类型不甚理解,因此在使用上出现了一些错误。本文将对void关键字的深刻含义进行解说,并详述void及void指针类型的使用方....
分类:
编程语言 时间:
2015-11-24 16:07:04
阅读次数:
220
文档对象主要由IMapdocument和IMxdContents接口完成的。IMapDocument定义了操作和管理文档对象的方法和属性,包括读、写和保存一个文档文件(*.mxd)。 public void ReplaceContents (IMxdContents pObject);保存修改; p...
分类:
其他好文 时间:
2015-11-24 16:06:35
阅读次数:
194