07 2011 档案

摘要:写了三天, 目前只支持 int 型变量和常量与指针的组合. 在勇攀自动机的高山中不行摔回起点... 阅读全文
posted @ 2011-07-29 21:23 walfud 阅读(938) 评论(2) 推荐(0) 编辑
摘要:Usage: path str_to_be_replaced with_what 阅读全文
posted @ 2011-07-26 22:54 walfud 阅读(348) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std ;int main (int argc, char **argv){ // 由于缺少一个 ',' 导致两个字符串合并, 从而少初始化了一个元素. const char *arr[5] = { "1", "2", "3" "4", "5" } ; for (int i = 0;i < int(sizeof(arr)/sizeof(arr[0])); i++) { cout << 阅读全文
posted @ 2011-07-17 22:33 walfud 阅读(431) 评论(0) 推荐(0) 编辑
摘要:# 读写文件.#/usr/bin/perl -wuse 5.010; # Use 'say'.# Read from file.open F, "<data.txt" or die "fail: open()";my @arr = <F>; # Read all data to array.close F;# Write to file.open F, ">res.txt" # Use ">>" if you want to append at end. or d 阅读全文
posted @ 2011-07-17 14:59 walfud 阅读(857) 评论(0) 推荐(0) 编辑