2011年10月21日
摘要: #coding:utf-8importos,sysdefhelp():print"""命令行格式:DelCommentsrcpath[dstpath]srcpath为源目录或文件的路径;detpath必须是已经存在的,它是存放转换后的目录的路径,默认为当前工作目录。"""defstripSlash(str):returnstr.rstrip('\\').rstrip('/')defcopyRemoveAllComment(srcpath,dstpath):#定义扫描的状态STATE_SCAN=0STAT 阅读全文
posted @ 2011-10-21 13:09 sanlo 阅读(686) 评论(0) 推荐(0) 编辑
摘要: #include<fstream>#include<iostream>#include<iomanip>voidprintHex(std::ifstream&ifs,std::ostream&ostream);voidshowInfo();/***命令形式如:ShowHex[filename][destfilename]*表示将filename的内容以16进制形式输出到destfilename**如果参数个数等于1,则打印出帮助消息*如果参数个数等于2,则输出到控制台*如果参数个数等于3,则输出到文件*/intmain(intargc,cha 阅读全文
posted @ 2011-10-21 13:05 sanlo 阅读(2044) 评论(0) 推荐(0) 编辑