1. 创建按钮#pragma mark 创建橙色按钮- (void) createOrangeBtn{ // 创建按钮 //[[UIButton alloc] initWithFrame:]; UIButton *btn = [[UIButton alloc] init]; ...
分类:
其他好文 时间:
2014-07-22 22:56:13
阅读次数:
248
// 智能指针// 作用:// 1. 管理堆内存// 使用约束:// 1. 不能将智能指针对象赋值给智能指针对象// 2. 不能将栈对象取地址后赋值给智能指针// 3. 每一个对应的堆对象地址只能赋值给一个智能指针对象#pragma oncet...
分类:
其他好文 时间:
2014-07-19 17:05:40
阅读次数:
235
js#pragma strict//用于绑定参照物对象 var target : Transform; //缩放系数 var distance = 10.0; //左右滑动移动速度 var xSpeed = 250.0; var ySpeed = 120.0; //缩放限...
分类:
移动开发 时间:
2014-07-19 09:13:27
阅读次数:
285
是head区的一个辅助标签names常用的选项有keywords(关键字)description(网站内容描述)auther(作者)robots(机器人向导)http-equiv可代替name项,常用的选项有Expires(期限) Pragma(cache模式) Refresh(刷新)Set-Coo...
分类:
其他好文 时间:
2014-07-18 19:31:09
阅读次数:
209
In addition to those validations, information is provided with each macro about its specific options.ValidationMacroOptionsValidate acceptance of term...
分类:
其他好文 时间:
2014-07-18 17:15:15
阅读次数:
434
运行环境:VS2008,win7,代码来源于MSDN,相关函数可以查看MSDN中的函数定义。。代码如下: 1 #include 2 #include 3 #include 4 #include 5 #pragma comment(lib, "ws2_32.lib") 6 7 int mai...
分类:
编程语言 时间:
2014-07-18 09:18:55
阅读次数:
334
1)问题上述:在技术交流群里,有人提到头一行编译不过去,%%%-------------------------------------------------------------------%%% @author someone%%% @copyright (C) 2014, %%% @doc...
分类:
其他好文 时间:
2014-07-17 21:22:18
阅读次数:
279
可以把序列中一个数改变,使得序列中后一个数与前一个数差的绝对值之和最小
把与数x相邻的数加入G[x]的链表中(若这个数值也为x,则不加入) 那么改变了数x,则相当于只会影响到这个链表中的数
为了让x变化后的数 与这个链表中的数差值绝对值之和最小 取排序后的序列的中位数即可
//#pragma comment(linker, "/STACK:102400000,1024000...
分类:
其他好文 时间:
2014-07-17 19:28:24
阅读次数:
210
尝试使用wptree来进行xml解析,又一次失败了,可以正常读取正常输出,但是使用wptree进行节点读取失败(乱码)请看源码:DealXml.h 1 #pragma once 2 3 #include 4 5 #include 6 7 struct TestData 8 { 9 ...
分类:
其他好文 时间:
2014-07-16 15:13:45
阅读次数:
225
#pragma warning (disable:4996)#include #include #include #include #include #include #include #include #include using namespace std;#define ll long lon...
分类:
其他好文 时间:
2014-07-16 12:39:50
阅读次数:
228