<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259812</guid>
        <pubDate>Mon, 08 Dec 2003 15:34:34 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259812</link>
        <description><![CDATA[Visitor:  <a href='http://forum.sources.ru/index.php?showtopic=39918&view=findpost&p=258738' target='_blank'>Vot тут</a> у класса B размер ровно на три указателя больше... ]]></description>
        <author>Visitor</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259521</guid>
        <pubDate>Mon, 08 Dec 2003 09:14:36 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259521</link>
        <description><![CDATA[dimedrol:  Ссылка и указатель немного разные вещи. Ссылка- это синоним переменной. А указатель токо указывает на неё (никогда не слышал про операцию разыменования ссылки) ]]></description>
        <author>dimedrol</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259430</guid>
        <pubDate>Mon, 08 Dec 2003 07:10:18 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259430</link>
        <description><![CDATA[trainer:  <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>Цитата</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Mfcer__</b>, 8.12.03, 01:04<br>А почему тогда *this?<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->Чтобы вернуть ссылку на самого себя.<br> ]]></description>
        <author>trainer</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259300</guid>
        <pubDate>Sun, 07 Dec 2003 22:12:02 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259300</link>
        <description><![CDATA[Visitor:  Для политкорректности <!--emo&:)--><img src='http://forum.sources.ru/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--><br><br>Ссылка синтаксически определяется как уже разыменованный указатель, т.е., инициализировать ее нужно именем объекта, а не именем указателя на него. А семантически -- как адрес объекта, т.е., содержит в себе именно адрес.  ]]></description>
        <author>Visitor</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259296</guid>
        <pubDate>Sun, 07 Dec 2003 22:04:25 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259296</link>
        <description><![CDATA[Mfcer__:  <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>Цитата</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Visitor</b>, 7.12.03, 20:38<br>CFoo&amp; CFoo::operator&lt;&lt;(int a){...; return *this;};<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--><br>А почему тогда *this?  <!--emo&:blink:--><img src='http://forum.sources.ru/html/emoticons/blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /><!--endemo-->  ]]></description>
        <author>Mfcer__</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259294</guid>
        <pubDate>Sun, 07 Dec 2003 21:55:58 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259294</link>
        <description><![CDATA[Visitor:  Как ето медленнее?<br>Указатель и ссылка -- ето одно и то же, за исключением того, что практически невозможно, находясь в здравом уме и трезвой памяти, поместить в ссылку некорректное значение, или оставить ее неинициализированной. <!--emo&:)--><img src='http://forum.sources.ru/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> ]]></description>
        <author>Visitor</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259290</guid>
        <pubDate>Sun, 07 Dec 2003 21:48:29 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259290</link>
        <description><![CDATA[dimedrol:  При &lt;тип&gt; &amp; создаётся псевдоним объекта.<br>И обращение по укозателю немного медлнее, чем обращение по ссылке (скорее всего за счет доплнительной операции разыменования указателя).<br>ЗЫ<br>Купи себе Страуструп &quot;Язык С++&quot;3-е издание ]]></description>
        <author>dimedrol</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259269</guid>
        <pubDate>Sun, 07 Dec 2003 20:40:35 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259269</link>
        <description><![CDATA[Visitor:  Срочно искать хорошую книгу по C++ <!--emo&:)--><img src='http://forum.sources.ru/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> Иначе АХТУНГ&#33;&#33;&#33;...<br><br>выражение &lt;тип&gt; &amp; означает <i>ссылка на (т.е., фактически, адрес) переменную типа &lt;тип&gt;</i>. Нужны ссылки, чтобы можно было оперировать физически одним объектом, не создавая его копии. В Си для етого использовались указатили, но указатели -- довольно опасная штука... ]]></description>
        <author>Visitor</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259244</guid>
        <pubDate>Sun, 07 Dec 2003 19:26:44 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259244</link>
        <description><![CDATA[Mfcer__:  А почему именно используется знак &amp; после CFoo?  <!--emo&:blink:--><img src='http://forum.sources.ru/html/emoticons/blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /><!--endemo--> <br><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>Цитата</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>trainer</b>, 7.12.03, 20:41<br><br>class CFoo {<br>&nbsp; ...<br>&nbsp; <i><b>CFoo&amp;</b></i> operator&lt;&lt;(char * text) {<br>&nbsp; &nbsp;  ...<br>&nbsp; &nbsp;  return *this;<br>&nbsp; }<br> <i> <b>CFoo&amp; </b></i> operator&lt;&lt;(int value) {<br>&nbsp; &nbsp;  ...<br>&nbsp; &nbsp;  return *this;<br>&nbsp; }<br>&nbsp; ...<br>};<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--><br> <br><br><span style='color:gray'><b>Добавлено в</b> <time class="tag-mergetime" datetime="2003-12-07T19:30:03+00:00">07.12.03, 19:30</time></span><br> Да, и еще почему при объявлении функции некоторые делают так:<br>void SomeFunc1(int&amp; x);<br>И чем это отличается от:<br>void SomeFunc2(int x);  <!--emo&:o--><img src='http://forum.sources.ru/html/emoticons/ohmy.gif' border='0' style='vertical-align:middle' alt='ohmy.gif' /><!--endemo-->  ]]></description>
        <author>Mfcer__</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259219</guid>
        <pubDate>Sun, 07 Dec 2003 17:41:02 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259219</link>
        <description><![CDATA[trainer:  Должно быть так:<br><!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b></b> </td></tr><tr><td id='CODE'><!--ec1-->class CFoo {<br>   ...<br>   CFoo&amp; operator&#60;&#60;&#40;char * text&#41; {<br>      ...<br>      return *this;<br>   }<br>   CFoo&amp; operator&#60;&#60;&#40;int value&#41; {<br>      ...<br>      return *this;<br>   }<br>   ...<br>};<!--c2--></td></tr></table><div class='postcolor'><!--ec2--><br><br>-----------------------------------<br><br>P.S. Какое единодушие. <!--emo&:)--><img src='http://forum.sources.ru/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> ]]></description>
        <author>trainer</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259218</guid>
        <pubDate>Sun, 07 Dec 2003 17:38:30 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259218</link>
        <description><![CDATA[Visitor:  CFoo&amp; CFoo::operator&lt;&lt;(char * a){...; return *this;};<br>и<br>CFoo&amp; CFoo::operator&lt;&lt;(int a){...; return *this;};<br> ]]></description>
        <author>Visitor</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259216</guid>
        <pubDate>Sun, 07 Dec 2003 17:36:57 +0000</pubDate>
        <title>Перегрузка ???</title>
        <link>https://forum.sources.ru/index.php?showtopic=39998&amp;view=findpost&amp;p=259216</link>
        <description><![CDATA[Mfcer__:  Добрый день&#33;<br><br>Как мне перегрузть оператор &lt;&lt; в классе, что бы можно было делать так:<br><br><!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b></b> </td></tr><tr><td id='CODE'><!--ec1-->class CFoo<br>{<br> ...<br> void operator &#60;&#60;&#40;???&#41; {???}<br> ...<br>};<br>CFoo f;<br>f &#60;&#60; &#34;Число&#34; &#60;&#60; 5&#59;<!--c2--></td></tr></table><div class='postcolor'><!--ec2--><br> <br><br><br>Спасибо. <!--emo&:huh:--><img src='http://forum.sources.ru/html/emoticons/huh.gif' border='0' style='vertical-align:middle' alt='huh.gif' /><!--endemo--> ]]></description>
        <author>Mfcer__</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	