﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Cplusplus,my love</title><link>http://www.cppblog.com/xieyingfeichina/</link><description>to the end</description><language>zh-cn</language><lastBuildDate>Fri, 03 Apr 2026 19:59:22 GMT</lastBuildDate><pubDate>Fri, 03 Apr 2026 19:59:22 GMT</pubDate><ttl>60</ttl><item><title>File I/O</title><link>http://www.cppblog.com/xieyingfeichina/archive/2007/08/06/29408.html</link><dc:creator>谢迎飞</dc:creator><author>谢迎飞</author><pubDate>Sun, 05 Aug 2007 17:09:00 GMT</pubDate><guid>http://www.cppblog.com/xieyingfeichina/archive/2007/08/06/29408.html</guid><wfw:comment>http://www.cppblog.com/xieyingfeichina/comments/29408.html</wfw:comment><comments>http://www.cppblog.com/xieyingfeichina/archive/2007/08/06/29408.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cppblog.com/xieyingfeichina/comments/commentRss/29408.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/xieyingfeichina/services/trackbacks/29408.html</trackback:ping><description><![CDATA[前几天同事遇到一个小问题，他想编个小工具，主要用来在每个.cpp文件的开始加入一句公共的#include ""，于是，感觉自己在C++这里好像也是个盲点，所以就帮忙一起想想，同时也有了一个想法就是可以借此系统的对C++和MFC，或者更多的类似问题和关于文件输入和输出的问题做个透彻的认识，同时也是想利用网络，来获得更多的事例和想法，或深刻的见解，请大家不吝赐教。<br>我先起个头第一期是关于CFile及其派生类<br>Use CFile and its derived classes for general-purpose disk I/O. Use ofstream or other Microsoft iostream classes for formatted text sent to a disk file.<br>It directly provides unbuffered, binary disk input/output services, and it indirectly supports text files and memory files through its derived classes.<br>Note that deleting the CFile object does not delete the physical file in the file system.<br>If you have not closed the file before destroying the object, the destructor closes it for you. <br>If you used new to allocate the CFile object on the heap, then you must delete it after closing the file. Close sets m_hFile to CFile::hFileNull.<br>So the member function Duplicate() should be use with Close() function, because of a new object which is created.<br>以上是个人在作例子和浏览msdn获得的一些结论，当然，除了单纯的针对本问题的关键是如何解决文件的随机读写，同时就是详细的文件输入和输出操作的结论，希望各位能够把自己遇到的关于文件输入输出操作的问题或解决方案共享出来，使我们每个人都能从中受益，同时享受技术带给我们的那份喜悦
<img src ="http://www.cppblog.com/xieyingfeichina/aggbug/29408.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/xieyingfeichina/" target="_blank">谢迎飞</a> 2007-08-06 01:09 <a href="http://www.cppblog.com/xieyingfeichina/archive/2007/08/06/29408.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Spider Man</title><link>http://www.cppblog.com/xieyingfeichina/archive/2007/08/05/29365.html</link><dc:creator>谢迎飞</dc:creator><author>谢迎飞</author><pubDate>Sat, 04 Aug 2007 16:11:00 GMT</pubDate><guid>http://www.cppblog.com/xieyingfeichina/archive/2007/08/05/29365.html</guid><wfw:comment>http://www.cppblog.com/xieyingfeichina/comments/29365.html</wfw:comment><comments>http://www.cppblog.com/xieyingfeichina/archive/2007/08/05/29365.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/xieyingfeichina/comments/commentRss/29365.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/xieyingfeichina/services/trackbacks/29365.html</trackback:ping><description><![CDATA[<p>刚看完蜘蛛侠3，还不错，看到结尾两个朋友冰释前嫌，但还是牺牲了一位，可是在朋友的葬礼上一个幕后的独白，挺有感触，生平第一次有意识的去听写英文电影原声，有些惭愧，请各位阅读者别嫌弃哦，现在就献上：<br>Whatever come with on our way, whatever bad we have rage inside, we&nbsp; always have choice. <br>My friend tell me that, and he&nbsp;chose to be the best himself.<br>It is the choice make us who we are, and we can always choose to do what is right.<br>不知道加上下面的翻译是否会减去原文的意义呢，总之，还是希望或许某时能得到不同的感觉，影片上的翻译是：<br>不管我们碰到什么事，不管我们内心有什么怒火，我们总是有选择的。<br>这是我的朋友哈里教我的。他选择做最好的他。<br>我们的选择决定了我们是什么样的人，我们永远可以选择去做正确的事。<br></p>
<img src ="http://www.cppblog.com/xieyingfeichina/aggbug/29365.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/xieyingfeichina/" target="_blank">谢迎飞</a> 2007-08-05 00:11 <a href="http://www.cppblog.com/xieyingfeichina/archive/2007/08/05/29365.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C++, Love or Use</title><link>http://www.cppblog.com/xieyingfeichina/archive/2007/07/29/28970.html</link><dc:creator>谢迎飞</dc:creator><author>谢迎飞</author><pubDate>Sun, 29 Jul 2007 08:03:00 GMT</pubDate><guid>http://www.cppblog.com/xieyingfeichina/archive/2007/07/29/28970.html</guid><wfw:comment>http://www.cppblog.com/xieyingfeichina/comments/28970.html</wfw:comment><comments>http://www.cppblog.com/xieyingfeichina/archive/2007/07/29/28970.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/xieyingfeichina/comments/commentRss/28970.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/xieyingfeichina/services/trackbacks/28970.html</trackback:ping><description><![CDATA[C++, 在今天大家都在专注于.NET和J2EE的时候，我却喜欢上了C++，是喜欢还是因为它更接近底层，我也不知道。自己总觉得是因为在自己喜欢的领域，它或许是最佳的选择。但是，也听过一些牛人说把一门语言学精通了，其他也可以触类旁通。我相信。所以，现在不曾动摇过，在不想以前那样，样样都学点。到最后，毫无功底。同时，也一直对这次经历常抱感恩之心。虽然很多事不尽如人意，但却给了我在技术道路上不断前行的指引。 
<img src ="http://www.cppblog.com/xieyingfeichina/aggbug/28970.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/xieyingfeichina/" target="_blank">谢迎飞</a> 2007-07-29 16:03 <a href="http://www.cppblog.com/xieyingfeichina/archive/2007/07/29/28970.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>