﻿<?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++博客-&lt;font color=#0080ff&gt;&lt;h2&gt;品味C++，品味symbian&lt;/h2&gt;&lt;/font&gt;-随笔分类-C++</title><link>http://www.cppblog.com/wario/category/3275.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 20 May 2008 18:49:15 GMT</lastBuildDate><pubDate>Tue, 20 May 2008 18:49:15 GMT</pubDate><ttl>60</ttl><item><title>使用string类注意的地方</title><link>http://www.cppblog.com/wario/archive/2007/01/21/17879.html</link><dc:creator>品味C++，品味symbian</dc:creator><author>品味C++，品味symbian</author><pubDate>Sun, 21 Jan 2007 15:19:00 GMT</pubDate><guid>http://www.cppblog.com/wario/archive/2007/01/21/17879.html</guid><wfw:comment>http://www.cppblog.com/wario/comments/17879.html</wfw:comment><comments>http://www.cppblog.com/wario/archive/2007/01/21/17879.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wario/comments/commentRss/17879.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wario/services/trackbacks/17879.html</trackback:ping><description><![CDATA[1. 注意开头要把string类和命名空间加进去：<br />#include &lt;string&gt;<br />using namespace std;<br />std是标准程序库所驻的命名空间名称。像string类和iostream类都在这个命名空间里。<br /><br />2. string class中使用erase( )，而不是delete( )来表示 删去一个字符。<img src ="http://www.cppblog.com/wario/aggbug/17879.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wario/" target="_blank">品味C++，品味symbian</a> 2007-01-21 23:19 <a href="http://www.cppblog.com/wario/archive/2007/01/21/17879.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>读《Essential C++》的感觉</title><link>http://www.cppblog.com/wario/archive/2006/12/03/15944.html</link><dc:creator>品味C++，品味symbian</dc:creator><author>品味C++，品味symbian</author><pubDate>Sun, 03 Dec 2006 14:18:00 GMT</pubDate><guid>http://www.cppblog.com/wario/archive/2006/12/03/15944.html</guid><wfw:comment>http://www.cppblog.com/wario/comments/15944.html</wfw:comment><comments>http://www.cppblog.com/wario/archive/2006/12/03/15944.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wario/comments/commentRss/15944.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wario/services/trackbacks/15944.html</trackback:ping><description><![CDATA[      读书的时候看过一下《Essential C++》，当时很多还不懂，今天回味了一下。第一章就主张使用vector和string 来取代语言内建的数组和C-style字符串了。看来实现一种功能会有很多种方法：）使用C++就用效率高的方法。<br />      第一章例子里，<br />      #include&lt;iostream&gt;<br />      #include&lt;string&gt;        //头文件需要引用string类，否则不能使用string<br />      using namespace std; //如果不用namespace，在Visual C++ 6.0中编译将会有错误<br /><br />      继续回味。。。<img src ="http://www.cppblog.com/wario/aggbug/15944.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wario/" target="_blank">品味C++，品味symbian</a> 2006-12-03 22:18 <a href="http://www.cppblog.com/wario/archive/2006/12/03/15944.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>