1、变量读取例:echo $PATH echo $(PATH)2、变量赋值:aa=asdf 注:等号左右没有空格3、查看所有环境变量:env4、当前线程的ID:echo $$5、自定义变量转为环境变量:export 变量名称(目的:子进程中该变量仍有效)6、read atest this is a ...
分类:
系统相关 时间:
2015-07-21 12:21:44
阅读次数:
180
题目:
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
题意:
给定一棵二叉树,返回它的最小高度。
最小高...
分类:
编程语言 时间:
2015-07-21 10:39:59
阅读次数:
132
#include
#include
#include
#include "XZip.h"
//复制文件夹实现
void copy_all_file(LPCSTR file_path, std_string &backup_path) //第一个参数为被复制文件,第二个是复制到的地址
{
if(!(boost::filesystem::exists(backup_path.c_str())...
分类:
其他好文 时间:
2015-07-21 10:38:52
阅读次数:
161
1.固定的图片路径是可以的,如下: 2.绑定的Path是一个String类型的图片路径,而实际情况它需要的是一个ImageSource,所以只需在前面标记它是一个Path类型的值就OK了! -------------------------------------------...
1. 安装参考:http://maven.apache.org/install.htmlA. win7环境下,官网下载maven安装文件B. 解压缩maven文件C. 确认已配置好JAVA环境,环境变量Path添加 maven文件/bin路径,i.e. D:\apache-maven-3.3.3\b...
分类:
其他好文 时间:
2015-07-21 01:17:50
阅读次数:
121
姓名陈嘉日期2015/7/15 主要工作及心得根据老师昨天提出最好使用测试软件进行测试的问题,尝试利用JUnit进行测试。首先,我从同学那里考来一份eclipse使用JUnit测试的库。放到我们的NetBeans里进行测试,通过修改build path, 增加库等方式都不能成功运行TestCase....
分类:
其他好文 时间:
2015-07-20 23:17:27
阅读次数:
124
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 le...
分类:
其他好文 时间:
2015-07-20 23:00:05
阅读次数:
85
一、简介 对头文件与库文件的搜索路径不太清楚,编译、运行时老碰到问题,ldd查看程序的链接时,总是出现unkown链接. 二、头文件 gcc 在编译时寻找所需要的头文件 : 1)搜寻会从-I开始 2)然后找gcc的环境变量 C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,OBJC...
分类:
其他好文 时间:
2015-07-20 22:51:57
阅读次数:
139
在开发中,除了在本机文件夹上进行svn更新外,在命令行中进行svn操作也非常关键,下面列举下网站摘抄的一些文档:1、将文件checkout到本地目录svn checkoutpath(path是服务器上的目录)例如:svn checkout svn://192.168.1.1/pro/domain简写...
分类:
其他好文 时间:
2015-07-20 21:10:37
阅读次数:
120
下载ImageMagick。然后写个脚本转换所有png图片。import osCMD = r'C:\Program Files\ImageMagick-6.9.1-Q16\convert.exe' #ImageMagick安装目录下convert.exe所在目录SOURCE_PATH = r'...
分类:
编程语言 时间:
2015-07-20 21:02:20
阅读次数:
178