C语言宏#和##一、基本用途#用于将宏定义中的参数转换为字符串。例:存在宏#define
TO_STRING(x) #x则TO_STRING(hello)展开为"hello"##用于拼接Token。例:存在宏#define
DECLARE_HANDLER(x) x##_handler则DECLARE...
分类:
编程语言 时间:
2014-05-27 00:19:05
阅读次数:
357
在开始后面的内容之前,先来解释一下urllib2中的两个个方法:info and
geturlurlopen返回的应答对象response(或者HTTPError实例)有两个很有用的方法info()和geturl()1.geturl():这个返回获取的真实的URL,这个很有用,因为urlopen(或...
分类:
编程语言 时间:
2014-05-26 23:17:30
阅读次数:
352
In Unity scripting, there are a number of event
functions that get executed in a predetermined order as a script executes. This
execution order is des...
分类:
其他好文 时间:
2014-05-26 12:20:20
阅读次数:
368
#define TEST_EVENT QEvent::User + 100class
CVxActuatorMain : public QMainWindow{ protected: void customEvent(QEvent
*event);}CVxActuatorMain::CVxActua...
分类:
其他好文 时间:
2014-05-26 11:49:23
阅读次数:
256
一、建立Default.aspx页面[csharp]view
plaincopyajax图片上传二、新建一个一般处理文件Handler.ashx[csharp]view
plaincopyusingSystem;usingSystem.Web;publicclassHandler:IHttpHand...
分类:
Web程序 时间:
2014-05-26 11:26:02
阅读次数:
505
编写test.cpp #include #include #include #include
#include void terminate_handler(){ char cmdline[1024] = {0,}; sprintf(cmdline,
"bash term.sh %d %d", ge...
分类:
系统相关 时间:
2014-05-26 09:34:23
阅读次数:
392
type:事件的类型,如onlick中的click;srcElement/target:事件源,就是发生事件的元素;button:声明被按下的鼠标键,整数,1代表左键,2代表右键,4代表中键,如果按下多个键,酒把这些值加起来,所以3就代表左右键同时按下;(firefox中
0代表左键,1代表中间键,...
The OnMapReplaced event is triggered whenever
theIMapControl2::Mapis replaced by another map, such as when
theIMapControl2::LoadMxFilemethod is used o...
分类:
其他好文 时间:
2014-05-23 03:51:19
阅读次数:
261
package com.example.android_http;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler...
分类:
其他好文 时间:
2014-05-23 01:41:36
阅读次数:
253
这个问题真是把我折腾的够呛:
package com.example.tupian;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import android.os.Bundle;
import android.os.Handler;
import android.os.Messag...
分类:
其他好文 时间:
2014-05-22 17:03:39
阅读次数:
241