#include #include #include #include #include
#define BUFF_LEN 1024using namespace std;long file_len(string file_name);void
init(string file_name){}voi...
分类:
其他好文 时间:
2014-07-22 23:00:54
阅读次数:
190
//UIAlertView的代理方法(创建UIAlertView之后,copy此代理方法即可)-
(BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView{
//1.取出输入框中的文字 NSString *text .....
分类:
其他好文 时间:
2014-07-22 23:00:34
阅读次数:
330
目的定义创建对象的方法/接口,然后让子类来决定创建具体的类的对象。通过不同的类,使得实例化延迟至子类。特点必须引入继承,才能算是工厂方法模式。Found in
JDK APIjava.util.Calendar#getInstance()java.text.NumberFormat#getInsta...
分类:
其他好文 时间:
2014-07-22 23:00:16
阅读次数:
282
using System;using System.Collections.Generic;using
System.IO;using System.Linq;using System.Text;using
System.Threading.Tasks;namespace 读文件案例{ cla...
分类:
其他好文 时间:
2014-07-22 22:59:55
阅读次数:
241
原pom.xml配置文件: 4.0.0 com.my.helloworld hello-world
1.0-SNAPSHOT Maven Hello World Project junit jun...
分类:
其他好文 时间:
2014-07-22 22:59:36
阅读次数:
374
用sudo时提示"xxx is not in the sudoers file. This
incident will be
reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。
下面是修改方法:1)进入超级用户模式。也...
分类:
其他好文 时间:
2014-05-01 22:46:43
阅读次数:
465
Icicle
注:我用的是最简化的数据。如果想加text,也很简单,只是在clicked中会重新定义y,所以在更新text时需要x(d.x+d.dx/2);(大概),刚开始定义时也可这样写,因为没有变scale,所以x(d.x)+x(d.dx)/2;也...
分类:
其他好文 时间:
2014-05-01 19:21:33
阅读次数:
298
1: 新项目创建 1.下载最新Python,安装 2.解压引擎包
3.运行终端,切换到引擎目录(直接cd拖动文件夹到光标即可得到路径) 4.按照文档例子: $ cd cocos2d-x $ ./setup.py $
source FILE_TO_SAVE_S...
分类:
其他好文 时间:
2014-05-01 19:16:21
阅读次数:
319
{{include tmpl="#header"
/}}中的include前不要加#,否则就是坑模板嵌套demo网址:http://borismoore.github.io/jsrender/demos/demos.html
分类:
Web程序 时间:
2014-05-01 19:01:40
阅读次数:
449
Servlet是运行在Web服务器端的java应用程序,它用java语言编写,具有java语言的优点。与普通的java程序区别是,servlet对象具有对http请求处理的功能,并且其运行需要web容器的支持。Servlet常用API(更多方法及声明请查阅java
ee API)servlet接口p...
分类:
其他好文 时间:
2014-05-01 18:58:59
阅读次数:
343