using UnityEngine;using UnityEditor;using System;public class AutoSave : EditorWindow { private bool autoSaveScene = true; private bool showMess...
分类:
其他好文 时间:
2014-06-29 00:38:29
阅读次数:
277
自己统计流量的话 需要判断是3G访问还是WIFI访问用 NSURLProtocol自定义一个这个累计DATA就是下行流量#include #include #include #include BOOL success; struct ifaddrs *addrs; const struc...
分类:
移动开发 时间:
2014-06-18 20:51:23
阅读次数:
323
typedef BOOL (WINAPI *_ChangeWindowMessageFilter)( UINT , DWORD); BOOL AllowMeesageForWin7(UINT uMessageID, BOOL bAllow)//注册Win7全局消息 { BOOL bResul...
一、三目运算符 三目运算符的一种简便写法:bool b = str == "abc" ? false : true; 当是自身时,实际上别吝啬那一个括号,有一个括号,实际上更容易一看就看懂: int i = 0; i = (i == 0) ? 1 : 0; 实际上这样的代码更好看:bean.B...
分类:
其他好文 时间:
2014-06-18 17:24:17
阅读次数:
174
上移view#import "MingRootViewController.h"@interface MingRootViewController (){ UIView *_myView; UIView *_myView1; BOOL _flag;}@end@implementation Mi...
分类:
其他好文 时间:
2014-06-18 13:41:02
阅读次数:
185
1、Ip地址验证/// /// Ip地址验证 /// public static bool CheckIp(string ip) { bool result = false; Regex ipReg = new Regex(@"^(\d{1,2}|1\d\d|2[0-...
分类:
其他好文 时间:
2014-06-18 10:35:56
阅读次数:
193
lambda函数使用方法:lambda [arg1[,arg2,arg3,...,argn]] : expression如:add = lambda(x,y:x+y)add(1,2)结果为1+2=3filter函数filter(bool_func,seq)此函数的功能相当于过滤器,通过返回值为boo...
分类:
编程语言 时间:
2014-06-18 09:36:35
阅读次数:
245
一.对移位操作的基本概述:
1、什么样的数据类型可以直接移位
char、short、int、long、unsigned char、unsigned short、unsigned int、unsigned long都可以进行移位操作,而double、float、bool、long double则不可以进行移位操作。
2、有符号数据类型的移位操作
对于char、short、int、lon...
分类:
其他好文 时间:
2014-06-18 06:59:15
阅读次数:
260
一开始Y1,Y2两个参数看不懂,再看一遍题目后才知道,vector索引代表是行数,值代表的是列此题数据量不大,直接深度搜索即可注意这里深度搜索的访问标识不是以前的索引和元素,而是一个交换元素后的整个状态vector,这样可以避免重复元素的搜索 set > visit; bool flag...
分类:
其他好文 时间:
2014-06-17 14:05:10
阅读次数:
203
#includeusing namespace std;struct date{int year;int month;int day;};struct Person{string name;int age;bool gender;double salary;date birth;Person(){c...
分类:
编程语言 时间:
2014-06-15 10:37:12
阅读次数:
207