码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
GitHub_HeadersDownCells_标题view下拉子cells
标题view下拉子cells,可以自定义标题View、子cell的内容及数量,最近会继续优化https://github.com/alwaysDB/HeadersDownCells.git以下为部分代码 1 - (void)groupHeaderViewDidClickBtnGroupTitle:....
分类:其他好文   时间:2015-11-04 22:48:02    阅读次数:225
java语言写文件内容
import java.io.File;import java.io.FileWriter;import java.io.IOException;public static void main(String[] args) { String fileName = "D:/softwareinst.....
分类:编程语言   时间:2015-11-04 21:32:35    阅读次数:291
函数修改二维数组的值
#includevoid turn(char (*s)[3]){ scanf("%c",&(*++s)[0]); //修改某个值}void print(char (*s)[3]){ for(int i=0;i<3;i++) printf("%s\n",&(*s++)); //打印某一行}int m....
分类:编程语言   时间:2015-11-04 21:26:52    阅读次数:223
twoSum____leetcode
import java.util.HashMap;public class TwoSum { public static void main(String[] args) { int[] input = { 2, 7, 11, 2 }; int target...
分类:其他好文   时间:2015-11-04 21:18:43    阅读次数:136
JAVA多线程
class?Mythread?implements?Runnable{ private?int?ticket??=5; public?void?run(){ for(int?i?=0;i<100;i++){ //使用同步代码块解决多线程卖票资源共享的问题 synchronized?(this){ i...
分类:编程语言   时间:2015-11-04 17:59:50    阅读次数:154
C# 控制台程序实现 检查iP ,Ping 是否正常
using System;using System.Net;using System.Net.NetworkInformation;class Program{static void Main(string[] args){int count = 4;IPAddress addr = IPAddre...
分类:Windows程序   时间:2015-11-04 17:46:57    阅读次数:406
UIAlertController
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.}-(void)touchesBegan:(NSSet *)tou.....
分类:其他好文   时间:2015-11-04 17:39:43    阅读次数:240
java 构造函数内部的多态方法 完全剖析
我们先来看一个例子,如果你读过《java编程思想》的话 应该会有印象 1 package com.test.zj; 2 3 public class PolyConstructors { 4 5 public static void main(String[] args) { 6 ...
分类:编程语言   时间:2015-11-04 17:36:43    阅读次数:224
调用系统录像功能保存文件到sdcard
public void click(View view) throws Exception { Intent intent = new Intent(); intent.setAction("android.media.action.VIDEO_CAPTURE")...
分类:其他好文   时间:2015-11-04 17:22:19    阅读次数:200
(总结)try{}catch{}中有return,finally{}的执行情况
总结:1、不管程序有没有bug,也不管try{}catch{}中有没有return语句,finally{}中的代码都会执行(记住这点)。2、先看例子......看下面的代码:class Program { static void Main(string[] args) ...
分类:其他好文   时间:2015-11-04 17:17:49    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!