#include void apple (int u,int v);int main(void){ int x=5,y=10; printf("x1=%d y1=%d.\n",x,y); apple(x,y); printf("x2=%d y2=%d.\n",...
分类:
其他好文 时间:
2015-11-25 19:09:30
阅读次数:
165
/** * 数组转JSON. */- (void)testJsonAndArray{ NSArray *arr = [NSArray arrayWithObjects:@"a",@"b",@"c",@"d",@"e",@"f", nil]; NSLog(@"arrar = %@...
分类:
编程语言 时间:
2015-11-25 19:00:32
阅读次数:
113
App有三种状态:1. 死亡状态(未打开App);2. 前台运行状态(打开状态);3. 后台暂停状态(停止所有动画, 定时器, 多媒体联网等操作)4. 后台运行状态(后台运行); ---------需要在AppDelegate中设置:1. 在- (void)applicationDidEnterBa...
分类:
移动开发 时间:
2015-11-25 17:00:15
阅读次数:
191
在MJPhotoView.m里面添加如下代码:- (void)scrollViewDidZoom:(UIScrollView *)scrollView { CGRect imageViewFrame = _imageView.frame; CGRect screenBounds = [UIScr.....
分类:
其他好文 时间:
2015-11-25 16:56:21
阅读次数:
170
1 protected void ExportExcel(System.Data.DataTable dt) 2 { 3 if (dt == null || dt.Rows.Count == 0) return; 4 Microsoft.Office...
- (void)checkNewVersion{ if ([@"appStore" isEqualToString:CHANNEL]) { AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager mana...
分类:
移动开发 时间:
2015-11-25 16:45:20
阅读次数:
225
输入一个字符串,其含有的字符各不相同。程序输出该字符串的所有排列(全排列)情形。void f(char *str, int len, int n){ int i; char tmp; char *p = (char *)malloc(len+1); i...
分类:
其他好文 时间:
2015-11-25 15:04:35
阅读次数:
131
打开/driver/input/input.c 这就是input代码的核心 找到static int __init input_init(void){err = class_register(&input_class);注册一个类,注册后会在sys/class出现input目录.......err ...
分类:
其他好文 时间:
2015-11-25 13:26:16
阅读次数:
194
一、简单说明线程间通信:在1个进程中,线程往往不是孤立存在的,多个线程之间需要经常进行通信线程间通信的体现1个线程传递数据给另1个线程在1个线程中执行完特定任务后,转到另1个线程继续执行任务线程间通信常用方法-(void)performSelectorOnMainThread:(SEL)aSelec...
分类:
移动开发 时间:
2015-11-25 13:20:21
阅读次数:
177
- (void)textViewDidChange:(UITextView *)textView{ NSString *temp=textView.text; //字数超过限制数量时,进行截取替换 if([[textView text] length] > _limitCharact...
分类:
其他好文 时间:
2015-11-25 13:06:21
阅读次数:
100