﻿<?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>博客园-bioinformatics-最新评论</title><link>http://www.cnblogs.com/bioinfo/CommentsRSS.aspx</link><description>志于道，据于德，依于仁，游于艺</description><language>zh-cn</language><pubDate>Tue, 20 Oct 2009 08:22:32 GMT</pubDate><lastBuildDate>Tue, 20 Oct 2009 08:22:32 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: zz: C＋＋并不难—之内存分配</title><link>http://www.cnblogs.com/bioinfo/archive/2008/04/12/1148402.html#1150324</link><dc:creator>Alan Cai</dc:creator><author>Alan Cai</author><pubDate>Sat, 12 Apr 2008 07:32:00 GMT</pubDate><guid>http://www.cnblogs.com/bioinfo/archive/2008/04/12/1148402.html#1150324</guid><description><![CDATA[没仔细看清楚，最大的区别就在于是否返回p，呵呵，谢谢博主的回复。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/bioinfo/" target="_blank">Alan Cai</a> 2008-04-12 15:32 <a href="http://www.cnblogs.com/bioinfo/archive/2008/04/12/1148402.html#1150324#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: zz: C＋＋并不难—之内存分配</title><link>http://www.cnblogs.com/bioinfo/archive/2008/04/12/1148402.html#1150113</link><dc:creator>owomo</dc:creator><author>owomo</author><pubDate>Sat, 12 Apr 2008 04:21:00 GMT</pubDate><guid>http://www.cnblogs.com/bioinfo/archive/2008/04/12/1148402.html#1150113</guid><description><![CDATA[f2 中分配了内存,同时返回了一个指向该内存的指针,p是局部变量会消亡没错 ^_^<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/bioinfo/" target="_blank">owomo</a> 2008-04-12 12:21 <a href="http://www.cnblogs.com/bioinfo/archive/2008/04/12/1148402.html#1150113#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: zz: C＋＋并不难—之内存分配</title><link>http://www.cnblogs.com/bioinfo/archive/2008/04/11/1148402.html#1148723</link><dc:creator>Alan Cai</dc:creator><author>Alan Cai</author><pubDate>Fri, 11 Apr 2008 08:55:00 GMT</pubDate><guid>http://www.cnblogs.com/bioinfo/archive/2008/04/11/1148402.html#1148723</guid><description><![CDATA[“但是一定要避免下面的事情发生：”<br>void f()<br><br>{<br><br>   …<br><br>   char * p;<br><br>   p = (char*)new char[100];<br><br>   …<br><br>}<br><br>没搞到博主说的这句话的意思，这个是局部变量，但是这个<br>char* f2()<br><br>{<br><br>   char* p = NULL:<br><br>   p =(char*) new char[4];<br><br>   return p;<br><br>}<br>里面的p也是局部变量呀，没看懂，希望博主解释一下，谢谢。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/bioinfo/" target="_blank">Alan Cai</a> 2008-04-11 16:55 <a href="http://www.cnblogs.com/bioinfo/archive/2008/04/11/1148402.html#1148723#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
