摘要: By default, VMnet0 is set to use auto-bridging mode and is configured to bridge to all active network adapters on the host system. You can use the vir 阅读全文
posted @ 2016-11-27 22:27 greencolor 阅读(322) 评论(0) 推荐(0) 编辑
摘要: printf、sprintf与fprintf 的用法区分1.printf 是和标准输出文件(stdout)关联的,fprintf 则没有这个限制.2.fprintf是用于文件操作的,原型是int fprintf( FILE *stream, const char *format [, argumen... 阅读全文
posted @ 2015-12-06 12:04 greencolor 阅读(259) 评论(0) 推荐(0) 编辑
摘要: // pointers to structures#include #include #include using namespace std;struct movies_t { string title; int year;};int main (){ string mystr; movies_t... 阅读全文
posted @ 2015-09-26 15:46 greencolor 阅读(186) 评论(0) 推荐(0) 编辑
摘要: On a UNIX system, the standard set of system directories is as follows:/usr/local/include/usr/lib/gcc-lib/target/version/include/usr/target/include/us 阅读全文
posted @ 2015-05-31 12:53 greencolor 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、ArrarList 转换为 string[] : ArrayList list = new ArrayList(); list.Add("aaa"); list.Add("bbb"); string[] arrString = (string[])list.ToArray(typeof(... 阅读全文
posted @ 2015-03-28 12:30 greencolor 阅读(262) 评论(0) 推荐(0) 编辑
摘要: parameter in and out% proc aa { href } { \upvar $href localhref;set localhref 1;\}% aa test1% puts $test1 阅读全文
posted @ 2014-10-05 11:24 greencolor 阅读(162) 评论(0) 推荐(0) 编辑
摘要: uplevel - Execute a script in a different stack framesuppose that procedure a was invoked from top-level, and that it called b, and that b called c. S... 阅读全文
posted @ 2014-10-04 11:37 greencolor 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Replacing an element of a list with another:% lreplace {a b c d e} 1 1 fooa foo c d eReplacing two elements of a list with three:% lreplace {a b c d e... 阅读全文
posted @ 2014-10-04 10:52 greencolor 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1.作用 linux系统中last命令的作用是显示近期用户或终端的登录情况,它的使用权限是所有用户。通过last命令查看该程序的log,管理员可以获知谁曾经或企图连接系统。2.格式last [—R] [—n][-f file][-t tty] [—h 节点][-I —IP][—1][-y][ID]3... 阅读全文
posted @ 2014-07-28 11:32 greencolor 阅读(252) 评论(0) 推荐(0) 编辑
摘要: "$*" is equivalent to "$1c$2c...", where c is the first character of the value"$@" is equivalent to "$1""$2" ...$$ Shell本身的PID(ProcessID) $! Shell最后运行... 阅读全文
posted @ 2014-06-22 00:25 greencolor 阅读(206) 评论(0) 推荐(0) 编辑