1.RootViewController.m#import
"RootViewController.h"#define URL
@"http://localhost:8080/TestOne/upload3.jsp"@implementation RootViewController-
(void)...
分类:
Web程序 时间:
2014-05-01 14:43:52
阅读次数:
541
#include "stdio.h"/*int* set(int a,int *c){int
*b;b=malloc(sizeof(int)*3);c[0]=a;c[1]=1+a;c[2]=2+a;b[0]=13;b[1]=14;b[2]=15;return
b;}*/char *set(void)...
分类:
编程语言 时间:
2014-05-01 13:56:31
阅读次数:
306
知识这个东西,真是知道的越多就不知道的越多,C/C++这塘水得多深啊,哈哈。看下面3个片段:1void fun(char a[100])
{2fprintf(stderr, "%s\n", a);3}45int main(void) {6char aa[200] =
"abcdef";7fun(aa...
分类:
其他好文 时间:
2014-05-01 01:44:36
阅读次数:
292
我写的memchr:1 void *memchr(const void *buf, char ch,
unsigned count){2 unsigned int cnt = 0;3 while(*(buf++) != ch && cnt
count)5 ret...
分类:
其他好文 时间:
2014-05-01 00:50:10
阅读次数:
306
void *memccpy (void *dest, const void *src, int c,
size_t
n);从src所指向的对象复制n个字符到dest所指向的对象中。如果复制过程中遇到了字符c则停止复制,返回指针指向dest中字符c的下一个位置;否则返回NULL。void
*memcp...
分类:
其他好文 时间:
2014-04-30 23:59:46
阅读次数:
564
using System;using System.Web;public class
Search_Book : IHttpHandler { public void ProcessRequest (HttpContext context) {
context.Respo...
分类:
其他好文 时间:
2014-04-30 23:28:59
阅读次数:
372
记录一下,自己用过的打开第三方应用的两种方法;
1.//根据包名类名启动第三方应用(要启动的应用的包名,要启动的activity)
openApp("com.xx.test", "com.xx.test.TestActivity");
private void openApp(String pname,String aname){
// changeInputSo...
分类:
其他好文 时间:
2014-04-28 10:25:41
阅读次数:
400
欢迎转载,转载请声明出处!
-----------------------------------------
前言:
java语言中,参数的传递只有一种机制,那就是值传递。
举例:
下面将通过几个例子来说明java中的参数传递机制,这些例子基本涵盖了所有参数传递的情况。
1.基本数据类型:
public static void testBase(int i)...
分类:
编程语言 时间:
2014-04-28 10:11:40
阅读次数:
379
program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Tst
{
class Program
{
static void Main(string[] arg...
分类:
移动开发 时间:
2014-04-27 21:35:59
阅读次数:
467
头文件:
#import
#import
@interface DirectionRouteUtils : NSObject
{
MKDirections *mDirections;
CLGeocoder *mGeocoder;
}
+ (instancetype)sharedInstance;
// 获取导航路线
- (void)findDirectionsFro...
分类:
移动开发 时间:
2014-04-27 21:35:59
阅读次数:
558