<?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++ string append()添加文本]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 23 Apr 2010 07:29:43 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	使用append()添加文本常用方法:<br/><br/>直接添加另一个完整的字符串:<br/><br/>如str1.append(str2);<br/><br/>添加另一个字符串的某一段子串:<br/><br/>如str1.append(str2, 11, 7);<br/><br/>添加几个相同的字符:<br/><br/>如str1.append(5, &#039;.&#039;);<br/><br/>注意,个数在前字符在后.上面的代码意思为在str1后面添加5个&quot;.&quot;.<br/><br/>//========================================<br/><br/><br/><div class="code">#include&lt;iostream&gt;<br/><br/>using namespace std;<br/><br/>//========================================<br/><br/>int main()<br/><br/>&#123;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;string str1=&quot;I like C++&quot;;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;string str2=&quot;,I like the world.&quot;;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;string str3=&quot;Hello&quot;;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;string str4(&quot;Hi&quot;);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;//====================================<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;str1.append(str2);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;str3.append(str2, 11, 7);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;str4.append(5, &#039;.&#039;);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;//====================================<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;str1&lt;&lt;endl;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;str3&lt;&lt;endl;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;str4&lt;&lt;endl;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;system(&quot;pause&quot;);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;return 0;&nbsp;&nbsp; <br/><br/>&#125;</div><br/>//========================================<br/><br/>运行结果为<br/><br/>I like C++,I like the world.<br/><br/>Hello World.<br/><br/>Hi.....
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] C++ string append()添加文本]]></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>