1 Tcl commandsThe basic syntax iscommand arg1 arg2 arg3 ...2 UNIX Tcl scriptsExample 2.1 puts -writes the string to I/O steam set - assign a...
分类:
其他好文 时间:
2015-03-18 20:00:20
阅读次数:
225
java 微信公众服务平台 下发 模板消息(一).部分截图(二).部分代码(一).部分截图:(二).部分代码://此处 给用户微信发消息... Map paraMap = new HashMap(); String pk_paydata =...
分类:
微信 时间:
2015-03-18 19:49:04
阅读次数:
357
myBatis,mapper查询方法参数传递出错 ? 接口类mapper的方法: public string getData(String str); ? mapper.xml文件中sql语句: select * from table1 t where t.str=#{str} ? 这样可能会报错,报错内容是找不...
分类:
移动开发 时间:
2015-03-18 18:44:51
阅读次数:
156
首先,你得学会curl下的各个参数的作用,能很大程度上帮助你完成,往往需要几十行甚至几百行的代码,确只需要两三行的命令代码就能搞定一切了!-a/--append上传文件时,附加到目标文件
-A/--user-agent<string>模拟浏览器登陆服务器
-anyauth可以使用“任何”身份验证方..
分类:
Web程序 时间:
2015-03-18 18:37:01
阅读次数:
233
首先cocos2dx里的资源,有png,plist(pvr),exportjson(json)大致这三类,我们也从这3类去研究相应的加载代码。
本次代码分析基于:
cocos2dx3.2
1、png
png格式的资源,从sprite作为一个切入口来分析,一般Sprite的创建如下
Sprite* Sprite::create(const std::string& file...
分类:
其他好文 时间:
2015-03-18 18:12:19
阅读次数:
226
继承继承描述了基类的属性如何“遗传”给派生类。一个子类可以继承它的基类的任何属性,不管是数据属性还是方法。
创建子类的语法看起来与普通(新式)类没有区别,一个类名,后跟一个或多个需要从其中派生的父类:class SubClassName (ParentClass1[, ParentClass2, ...]):
'optional class documentation string'...
分类:
编程语言 时间:
2015-03-18 18:11:30
阅读次数:
155
1.简单例子假设我们Java中有这么一个open的静态方法,它没有参数,有一个int的返回值。怎么在C++中调用它呢?package cb.CbCCBLE;
public class CbCCBLECentralManager {
public static final String TAG = "CbCCBLECentralManager Android";
public sta...
分类:
编程语言 时间:
2015-03-18 18:09:05
阅读次数:
237
1.首先是LoadLibrarycocos2d中的C++代码会编译成一个.so文件,放在安卓目录下的libs/armeabi 下,然后java会load进来,这步我们不用做了,因为cocos2d已经帮我们做好了。package cb.CbCCBLE;
public class CbCCBLECentralManager {
public static final String TA...
分类:
编程语言 时间:
2015-03-18 18:08:34
阅读次数:
153
只需要检查AndroidManifest.xml中的:
android:name=".Sample2_14Activity"
android:label="@string/app_name" >
是否正确!...
分类:
其他好文 时间:
2015-03-18 18:05:19
阅读次数:
109
problem:
Write a function to find the longest common prefix string amongst an array of strings.
寻找 0 ~n 个字符串的最长公共前缀
thinking:
(1)公共前缀很好理解,按位匹配即可
(2)很容易忘记处理0、1个字符串的情况。
code:
string prefi...
分类:
其他好文 时间:
2015-03-18 18:05:15
阅读次数:
112