类微信朋友圈发动态功能初步-图片与文字篇 1 /** 2 * 发布带有图片的微博 3 */ 4 - (void)sendWithImage 5 { 6 // URL: https://upload.api.weibo.com/2/statuses/upload.json 7 //...
分类:
微信 时间:
2015-11-22 01:32:39
阅读次数:
423
public class Test extends AndroidTestCase { private shujuku shu; private SQLiteDatabase db; // 测试方法执行前调用 @Override protected void setUp() throw...
分类:
数据库 时间:
2015-11-22 00:21:10
阅读次数:
164
public class Demo1 { public static void main(String[] args) { boolean t = false | true; System.out.println(t); t |= false; ...
分类:
编程语言 时间:
2015-11-22 00:17:03
阅读次数:
188
先简单总结一下基本的用法: 1 void sum(int n, ...) 2 { 3 va_list arg_ptr = NULL; //申请一个指针 4 5 va_start(arg_ptr, n); //设置指针指向 6 7 va_arg(arg_ptr, i...
分类:
编程语言 时间:
2015-11-22 00:07:24
阅读次数:
227
客户端代码: import java.io.*;import java.net.*;public class DailyAdviceClient { public void go(){ try{ Socket s=new Socket("127.0.0...
分类:
其他好文 时间:
2015-11-21 21:14:05
阅读次数:
198
1 写入plist下面是利用字典将数据写入到.plist文件#import "ViewController.h" @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [self createPlis...
分类:
其他好文 时间:
2015-11-21 21:13:50
阅读次数:
162
#include //创建传递指针的方法 void swap(int* pi,int*pj){ int temp=*pi; *pi=*pj; *pj=temp; }main(){ int i=5; int j=7; //之前 ...
分类:
编程语言 时间:
2015-11-21 19:55:10
阅读次数:
130
众多周知,对于二叉树的遍历, 一种比较容易理解以及编写的方式就是递归的方式了,下面针对二叉树遍历的中序遍历做一个简单的分析: void travelTree(BiTree T, int deep){ if (T->lchild != NULL) travelTree(T->lchild, ++dee...
分类:
其他好文 时间:
2015-11-21 19:50:48
阅读次数:
172
int (*(*fp)(void *))[10]; //这个类型用typedef分解出来// 第一步:此指针是一个指向函数T1的指针typedef int (*T1(void *))[10];T1 *fp;// 第二步:T1 是一个函数,返回值是T2,参数为(void *)typedef int (...
分类:
其他好文 时间:
2015-11-21 18:20:23
阅读次数:
319
1.UITableView补充1??:-(void)p_data@property (nonatomic,retain)NSMutableArray *dataArray;@property (nonatomic,assign)UITableViewCellEditingStyle editStyl...
分类:
移动开发 时间:
2015-11-21 18:18:23
阅读次数:
212