上一页 1 ··· 4 5 6 7 8
  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) 编辑
  2011年9月27日
摘要: 更全面的原文在这里:http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx为文件命名 尽管每个文件系统对各自的文件夹或文件的命名格式都有具体的规定,但是所有的系统都遵循着一个通用的约定:一个基本文件名(base file name)和一个可选的扩展名,它们之间被一个点号分开。 例如,MS-DOS FAT 文件系统支持8字符长得基本文件名和3字符长的扩展名。这被称为8.3文件名。FAT文件系统和NTFS文件系统没有8.3文件名的限制,因为它们支持长文件名(long file name)。... 阅读全文
posted @ 2011-09-27 15:57 sanlo 阅读(2298) 评论(0) 推荐(0) 编辑
  2011年9月5日
摘要: Why Not Specialize Function Templates?This article appeared inC/C++ Users Journal, 19(7), July 2001.While the title of this article is a question, it could also be made into a statement: this article is about when and why not to specialize templates.The Important Difference: Overloading vs. Speciali 阅读全文
posted @ 2011-09-05 20:48 sanlo 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: XML规范:http://www.w3.org/TR/xml/一个XML教程:http://skew.org/xml/tutorial/TinyXml文档首页:http://www.grinninglizard.com/tinyxmldocs/index.htmlTinyXml教程:http://www.grinninglizard.com/tinyxmldocs/tutorial0.html 阅读全文
posted @ 2011-09-05 09:12 sanlo 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8