代理声明
using UnityEngine;
using System.Collections;
public class Test1 : MonoBehaviour {
// Use this for initialization
public delegate void Mydelegate(string str);
public void A(Mydelegate...
分类:
编程语言 时间:
2015-04-03 00:18:36
阅读次数:
245
struct value type instantiated without new ctor must have para cant use default ctorclass reference typestruct implicitly sealed cant be inhe...
分类:
其他好文 时间:
2015-04-02 22:28:21
阅读次数:
215
http://dev.mysql.com/doc/refman/5.6/en/memory-use.htmlThe following list indicates some of the ways that the mysqld server uses memory. Where applicab...
分类:
数据库 时间:
2015-04-02 22:12:18
阅读次数:
237
make sure your python version > Python 2.3 ###1 从一个小案例说起: cat howto_logging.py #coding=utf8 # file name: howto_logging # this file shows how to use logging # made by vasks, email:vasks@qq....
分类:
编程语言 时间:
2015-04-02 21:01:54
阅读次数:
207
1.故事板并不完美,它由一些明显的不足之处。但是故事板是构建用户界面的趋势,以及如何使用故事板来完成用nib文件完成的事情(比如和控制器进行通信)。2.添加故事板:方式和添加新文件的方式相同。事实上,从Xcode 5开始,就已经默认打开了Use Storyboard选项,这使得从应用删除故事板变得更...
分类:
其他好文 时间:
2015-04-02 20:37:07
阅读次数:
140
最近工作中遇到一个问题,想在某个文件的指定位置后面添加一个标志位,要求在shell脚本里实现。问题说明:想在sys_config.fex文本的某个字符串后面添加一个flag例如:sys_config.fex里有这么一段[nand_para]nand_use = 1要求在[nand_para]后面添加一个flag = 1,最后变成(不影响其他内容):[nand_para]flag = 1nand_u...
分类:
系统相关 时间:
2015-04-02 19:02:20
阅读次数:
198
2009年04月28日Top 10 steps to optimize data access in SQL Server: Part I (use indexing)2009年06月01日Top 10 steps to optimize data access in SQL Server: Par...
分类:
数据库 时间:
2015-04-02 18:26:13
阅读次数:
147
Header: #include qmake: QT += core注意:该类中的所有函数都是可重入的.QUrl类为URLs操作提供了方便的接口.它可以解析并且构造URLs在编码和解码格式.QUrl也支持国际域名(IDNs).The most common way to use QUrl is t....
分类:
Web程序 时间:
2015-04-02 18:03:55
阅读次数:
268
一个实例中有若干个库,其中部分库中都有一个名为config的表,那么如何判断config表在整个实例中出现多少次呢?可以使用sp_msforeachdb,下面是一个例子:EXEC master.sys.sp_MSforeachdb 'use [?];IF EXISTS(SELECT * FROM s...
分类:
其他好文 时间:
2015-04-02 14:58:54
阅读次数:
134
题目:Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space...
分类:
其他好文 时间:
2015-04-02 10:31:49
阅读次数:
114