码迷,mamicode.com
首页 >  
搜索关键字:void 0    ( 62627个结果
Android 关于获取摄像头帧数据解码
// 创建保存照片文件夹 private void CreateFileJPG() { File file = new File("/sdcard/image"); if (!file.exists()) { try { file.mkdirs(); } catch (Exception e) { // TODO: handle exceptio...
分类:移动开发   时间:2014-05-15 06:39:58    阅读次数:434
Linux环境编程之进程(三):函数间跳转
引言:在编写程序时,经常在函数内部使用goto语句来跳转,从而进行出错处理,那么如果想要在函数之间进行跳转该怎么做呢?使用setjmp和longjmp函数。 给出示例程序: #include #include #include static void f1(int, int, int, int); static void f2(void); static jmp_buf jmpbu...
分类:系统相关   时间:2014-05-15 02:44:22    阅读次数:335
Map中按value值排序
大家都知道,在java中的集合Map中按键值key排序比较简单,只需引用集合TreeMap即可,可是怎样实现按value值排序呢?下面我们来测试一下: public class TestHashMap { public static void main(String[] args) { Map map = new HashMap(); map.put("zhangsan", 1); ...
分类:其他好文   时间:2014-05-15 02:37:34    阅读次数:263
IOS 定制浏览器(使用UIWebView)
iOS 定制浏览器(使用UIWebView)     UIWebView 本身自带了前进,后退,刷新,停止等方法。 所以我们只需要调用现有的借口就可以完成一款应用内嵌的浏览器了。 比方说系统提供了如下的方法: - (void)reload; - (void)stopLoading; - (void)goBack; - (void)goForward...
分类:移动开发   时间:2014-05-14 21:39:51    阅读次数:457
学习C/C++语言:文件的操作
#include #include void main(int argc,char *argv[]) { FILE *in,*out; if(argc!=3) { printf("you forgot to enter a file name\n"); exit(0); } if((in=fopen(argv[1],"r"))==NULL) { printf("cannot...
分类:编程语言   时间:2014-05-14 21:37:56    阅读次数:321
ios 基本图形的绘制
基本图形的绘制 包括: 代码画线,画文字 图片 裁剪 重绘  简单动画 当自定义view的时候 系统会自动调用drawRect 方法 画线 - (void)drawRect:(CGRect)rect { // Drawing code // 1.获得图形上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); ...
分类:移动开发   时间:2014-05-14 21:20:24    阅读次数:497
C#控制台小钢琴
控制台钢琴小程序  static void Main(string[] args)         {             WindowsMediaPlayer wmp = new WindowsMediaPlayer();             wmp.URL=@"f:\all of musics\kukuku\hisaishi joe - ballade.mp3";...
分类:其他好文   时间:2014-05-14 20:28:08    阅读次数:257
parent,son深刻理解this,super关键字
核心点: super关键字,表示调用的是父类对象。 this关键字,表示调用的是当前运行类对象。 那么如果在父类中,使用了关键字,this,此时的this指的是什么呢? 看下面的例子,再加深理解核心店的第二句话就ok了。 parent类: package com.ghsy.thissuper; public class Parent { public void init(){ ...
分类:其他好文   时间:2014-05-14 20:04:29    阅读次数:217
unity发布exe全屏方法
首先 将该代码挂在NGUI的UIroot上 using UnityEngine; using System.Collections; public class example : MonoBehaviour { public void Awake() { Screen.SetResolution(1024, 768, true);//自己想要的分辨率,比如1024*768,true表示全...
分类:其他好文   时间:2014-05-14 19:24:25    阅读次数:404
Linux线程终止
当进程中的某一个线程调用了exit、_Exit、_exit,那么整个进程会终止。同样,一个信号发送到某个线程,而该信号的默认动作是终止,整个进程也会终止。 单个进程的终止有三种方法: 从程序正常返回。线程自身调用pthread_exit。被同一进程中的其它线程取消。 先来看看前两种情况。 void pthread_exit(void *rval_ptr); // 退...
分类:编程语言   时间:2014-05-14 15:13:07    阅读次数:428
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!