#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
运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。具体细节不管,如果验证:vim
test.sh:set ff?如果出现fileforma=dos那么就基本可以确定是这个问题了。:set filefo...
分类:
其他好文 时间:
2014-07-22 23:00:13
阅读次数:
243
原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
原题地址:http://oj.leetcode.com/problems/valid-number/题意:判断输入的字符串是否是合法的数。解题思路:这题只能用确定有穷状态自动机(DFA)来写会比较优雅。本文参考了http://blog.csdn.net/kenden23/article/detail...
分类:
编程语言 时间:
2014-05-02 00:04:57
阅读次数:
483
用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
#include void pr_stdio(const char *, FILE *);int
main(){ FILE *fp; fputs("enter any character\n",stdout); if(getchar()==EOF)
printf("getchar error");....
分类:
其他好文 时间:
2014-05-01 20:18:16
阅读次数:
321
我们知道,JavaScript中检测对象类型的运算符有:typeof、instanceof,还有对象的constructor属性: 1) typeof 运算符
typeof 是一元运算符,返回结果是一个说明运算数类型的字符串。如:"number","string","boolean","object...
分类:
编程语言 时间:
2014-05-01 19:46:51
阅读次数:
399
示例代码使用C++来开发WPF,主要是如何在MFC(Win32)的窗口中Host
WPF的Page。下面我就做个详细的介绍.一、创建工程, 由于MFC的Wizard会生成很多用不到的代码,所以我准备从一个空的工程开始创建一个MFC的工程。a)
打开VS2005,菜单File->New->Projec...
分类:
编程语言 时间:
2014-05-01 19:26:41
阅读次数:
371
十进制转二进制的递归实现算法: 1 #include 2 void dectobi(int
a); 3 4 int main() 5 { 6 int i; 7 printf("please input a decimical number\n"); 8
scanf("%...
分类:
其他好文 时间:
2014-05-01 19:19:33
阅读次数:
397
1: 新项目创建 1.下载最新Python,安装 2.解压引擎包
3.运行终端,切换到引擎目录(直接cd拖动文件夹到光标即可得到路径) 4.按照文档例子: $ cd cocos2d-x $ ./setup.py $
source FILE_TO_SAVE_S...
分类:
其他好文 时间:
2014-05-01 19:16:21
阅读次数:
319