- 博客(17)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
转载 同步调用、异步调用、异步回调的区别
原文 本文将主要通过“同步调用”、“异步调用”、“异步回调”三个示例来讲解在用委托执行同一个“加法类”的时候的的区别和利弊。 首先,通过代码定义一个委托和下面三个示例将要调用的方法: public delegate int AddHandler(int a,int b); public class 加法类 {
2014-04-25 16:54:12
1526
原创 ANSI C中类型转换
#include using namespace std;int array[] = {23,34,12,17,204,99,16};#define TOTAL_ELEMENT (sizeof(array)/sizeof(array[0]))int main(){ cout<<TOTAL_ELEMENT; int d = -1; int x; if(d
2014-04-18 21:23:18
525
原创 C里面字符串及strcpy函数让我大跌眼镜
char s[] = "123456789";char e[] = "123"; strcpy(e,s); cout<<e<<" "<<s<<endl;
2014-04-11 17:10:25
619
转载 GET POST区别及SESSION, COOKIE
GET POST区别(1)get是从服务器上获取数据,post是向服务器传送数据。(1) 在客户端,Get方式在通过URL提交数据,数据在URL中可以看到;POST方式,数据放置在HTML HEADER内提交。(2) 对于get方式,服务器端用Request.QueryString获取变量的值,对于post方式,服务器端用Request.Form获取提交的数据。(2) GET方
2014-04-10 17:31:45
875
原创 Cocos2d 常见错误:error C2660
搞了一天,一直出现C2660错误,原因:两个类互相包含解决办法:http://www.cnblogs.com/yufenghou/p/3625703.html
2014-03-28 14:38:00
843
原创 作业:利用正则表达式将网页内容替换为OMIT
/* * week_02_作业二 * @detail:完成clean函数,其功能为:屏蔽字符串参数text中的网页链接信息,并按照返回屏蔽后的结果 * @返回格式:对第1-n个链接替换为OMIT1-OMITn,返回替换后的字符串 * @author: vanxin * @email: vanxinliu@gmail.com * @version: 2.0 * @改进了匹
2013-10-07 16:44:27
695
原创 1198. Substring题解
题目:1198. SubstringConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionDr lee cuts a string S into N pieces,s[1],…,s[N]. Now, Dr lee gives you these N sub-strings: s[1],…s[N]
2013-09-27 11:46:30
873
原创 1051. Biker's Trip Odomete题解
题目:1051. Biker's Trip OdometeConstraintsTime Limit: 1 secs, Memory Limit: 32 MB DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the
2013-09-22 12:21:18
929
原创 1046. Plane Spotting
1046. Plane SpottingConstraintsTime Limit: 1 secs, Memory Limit: 32 MB DescriptionCraig is fond of planes. Making photographs of planes forms a major part of his daily life. Since he tries
2013-09-22 11:48:30
770
原创 Sicily 1035. DNA matching题解
题目:1035. DNA matchingConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionDNA (Deoxyribonucleic acid) is founded in every living creature as the storage medium for genetic inform
2013-09-19 12:58:52
978
原创 1027. MJ, Nowhere to Hide题解
原题:1027. MJ, Nowhere to HideConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionOn BBS, there is a familiar term called MJ (short for MaJia), which means anoth
2013-09-19 09:58:30
654
向量简单实现
2013-05-28
Windows NPS 中设置pfAction = raAccept不起作用
2015-10-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人