写程序时,会经常进行文件的读写操作。
记录下,方便以后copy使用。
///
/// 写文件
///
/// 文件路径
/// 文件内容
public static void WriteFile(string Path, string Strings)
{
...
分类:
其他好文 时间:
2014-09-02 14:12:04
阅读次数:
142
一些函数方法常用的动词:get 获取/set 设置, add 增加/remove 删除create 创建/destory 移除 start 启动/stop 停止open 打开/close 关闭, read 读取/write 写入load 载入/save 保存, create 创建/destroy 销...
分类:
Web程序 时间:
2014-09-02 13:48:54
阅读次数:
159
1. 运行技巧在Windows系统下的做法完全不同,我们得靠.cmd文件来解决问题。假设node-echo.js存放在C:\Users\user\bin目录,并且该目录已经添加到PATH环境变量里了。接下来需要在该目录下新建一个名为node-echo.cmd的文件,文件内容如下:@node "C:\...
分类:
Web程序 时间:
2014-09-02 12:13:14
阅读次数:
182
1. 下载安装R-3.1.1-win.exe;2.在R中安装rJava> install.packages("rJava")3. 设置环境变量:1 PATH:D:\SoftWare\Java\jdk1.6.0_45\jre\bin\server;D:\SoftWare\Java\R\R311\bin...
分类:
编程语言 时间:
2014-09-02 12:08:24
阅读次数:
184
静态块,在项目启动的时候就执行,是主动执行的。静态方法, 是被动执行的,需要被调用才执行。static{try{Stringpath=Config.class.getResource("/").toURI().getPath();is=newFileInputStream(path+"config....
分类:
编程语言 时间:
2014-09-02 12:04:44
阅读次数:
157
一. IKVM1.1下载配置IKVM1.1.1. 下载路径http://www.ikvm.net/index.html1.1.2. 设置路径解压ikvm-0.42.0.3.zip,并将%IKVM_HOME%/bin添加到path中。此处的%IKVM_HOME%是指解压后ikvm的主目录。1.2第一种...
分类:
编程语言 时间:
2014-09-02 12:01:14
阅读次数:
322
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()",
"()(())", "()()()...
分类:
其他好文 时间:
2014-09-02 10:29:44
阅读次数:
186
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2014-09-02 10:26:54
阅读次数:
217
问题描述
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
解决方案
/**
* Definition fo...
分类:
其他好文 时间:
2014-09-02 00:26:44
阅读次数:
217
实例一:设置临时环境变量在linux服务器上设置临时环境变量,当退出shell环境时,自动销毁exportJAVA_HOME=/usr/java/jdk1.6.0_32exportclasspath=$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jarexportANT_H...
分类:
系统相关 时间:
2014-09-02 00:15:13
阅读次数:
228