#region 字符转码 /// /// 对指定字符串进行URL标准化转码 中文字符串转换成UTF-8
/// /// /// /// public static string UrlEncode(strin...
分类:
其他好文 时间:
2014-05-26 00:33:03
阅读次数:
244
BinRes.h#ifndef
_waxie_binary_resource_h_#define _waxie_binary_resource_h_#include class BinRes
{public: BinRes(); virtual ~BinRes();public: static v....
分类:
其他好文 时间:
2014-05-26 00:32:02
阅读次数:
271
解决方案:把头信息,去掉就好了错误信息:意外的XML声明。XML声明必须是文档中的第一个节点并且在它之前不允许出现空白字符。第1行,位置41。代码:
static void Main(string[] args) { string xmlStr = "139058...
分类:
其他好文 时间:
2014-05-26 00:12:21
阅读次数:
490
import java.util.*;public class GN { public static
void main(String arg[]) { int a = 0;// 数字标记 int b = 0;// 位置标记 int time = 0;...
分类:
编程语言 时间:
2014-05-26 00:07:44
阅读次数:
327
-----006-variable.php ----- 1 2 3 4 5 一个PHP网页 6 7 8
\n";15 }16 static_test();17 static_test();18 static_test();19 st...
分类:
Web程序 时间:
2014-05-25 19:37:54
阅读次数:
257
转自:http://logic0.blog.163.com/blog/static/188928146201371235435974/Form代码:class
ImageUploadForm(forms.Form): """Image upload form.""" image = fo...
分类:
数据库 时间:
2014-05-25 13:58:20
阅读次数:
2560
static是静态的意思
C语言中static的作用
1. 在函数体内,静态变量具有“记忆”的功能,即在函数体内部一个被声明为静态的变量在函数的调用过程中值是不变的,初始化只会被执行一次
2. static全局变量和全局函数只能被本程序的函数所使用,不能被其它文件使用。一般的全局变量和全局函数可以被项目其它文件所使用
3. static变量,不论是全局static变量还是static局部变...
分类:
编程语言 时间:
2014-05-25 13:27:35
阅读次数:
286
背景
大家都知道线程之间共享变量要用volatile关键字。但是,如果不用volatile来标识,会不会导致线程死循环?比如下面的伪代码:
static int flag = -1;
void thread1(){
while(flag > 0){
//wait or do something
}
}
void thread2(){
//do something
f...
分类:
编程语言 时间:
2014-05-25 10:24:14
阅读次数:
220
常用android的smali注入代码
1.增加log信息
const-string v3,"SN"
invoke-static {v3,v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2.弹出消息框
new AlertDialog.Builder(self)
.setTitl...
分类:
移动开发 时间:
2014-05-25 09:00:41
阅读次数:
324
1. 数组的类型2. 数组的定义方法3. 数组的操作方法1. 数组的类型 1 class Test{2
public static void main(String args []){3 int arr [] = {5,6,7,2,34,3,5,34,5,4};
//数组...
分类:
编程语言 时间:
2014-05-25 03:20:48
阅读次数:
332