<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[c++中sizeof用法解答]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 11 Mar 2008 05:59:37 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp; 错误在fwrite(file_contents,sizeof(file_content),1,fp);这一行.<br/><br/>&nbsp;&nbsp;第2个参数应该是写入块的大小.<br/>&nbsp;&nbsp;应该是&nbsp;&nbsp;&nbsp;&nbsp;(size_t)strlen(file_contens) 或者file_content.size()<br/><br/>======= 2008-03-11 13:33:25 您在来信中写道：=======<br/><br/>>yifeng，您好！<br/>><br/>>&nbsp;&nbsp;#include <string><br/>>#include <iostream><br/>>using namespace std;<br/>>int main()<br/>>&#123;<br/>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string file_content="This is a test&#92;n";<br/>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;const char* file_contents=file_content.c_str();<br/>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FILE *fp;<br/>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fp=fopen("/tmp/stu_list","wb");<br/>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fwrite(file_contents,sizeof(file_content),1,fp);<br/>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(fp);<br/>><br/>>&#125;<br/>><br/>>1.为何只有this是不是空格给截断了？<br/>>2.为何要用const修饰<br/>>3.如何才能把string给写入到文件中.
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] c++中sizeof用法解答]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>