<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Methodenabbruch]]></title><description><![CDATA[<p>Huhu</p>
<p>Ich hab eine Frage: Ich habe hier eine Methode ohne Rückgabewert:</p>
<pre><code class="language-cpp">void CTestDlg::Aufruf()
{
.....
}
</code></pre>
<p>In dieser Methode muss ich eine if Abfrage machen. Wenn diese mit TRUE zurückkommt, soll er mir aus der Methode rausgehen. Gibt es da außer return (wobei ich dann einen Rückgabewert drauß machen müsste) noch eine andere möglichkeit? Mit &quot;exit&quot; habe ich das schon probiert, aber dann verlässt er mir gleich das ganze Programm und &quot;break&quot; funzt nur bei &quot;switch&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120463/methodenabbruch</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 07:37:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120463.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Sep 2005 14:19:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Methodenabbruch on Tue, 13 Sep 2005 14:19:55 GMT]]></title><description><![CDATA[<p>Huhu</p>
<p>Ich hab eine Frage: Ich habe hier eine Methode ohne Rückgabewert:</p>
<pre><code class="language-cpp">void CTestDlg::Aufruf()
{
.....
}
</code></pre>
<p>In dieser Methode muss ich eine if Abfrage machen. Wenn diese mit TRUE zurückkommt, soll er mir aus der Methode rausgehen. Gibt es da außer return (wobei ich dann einen Rückgabewert drauß machen müsste) noch eine andere möglichkeit? Mit &quot;exit&quot; habe ich das schon probiert, aber dann verlässt er mir gleich das ganze Programm und &quot;break&quot; funzt nur bei &quot;switch&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/871212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/871212</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Tue, 13 Sep 2005 14:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to Methodenabbruch on Tue, 13 Sep 2005 14:25:27 GMT]]></title><description><![CDATA[<p>MSS-Software schrieb:</p>
<blockquote>
<p>Gibt es da außer return (wobei ich dann einen Rückgabewert drauß machen müsste) noch eine andere möglichkeit?</p>
</blockquote>
<p>Du musst keinen Rückgabewert machen. Einfach return;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/871215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/871215</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 13 Sep 2005 14:25:27 GMT</pubDate></item><item><title><![CDATA[Reply to Methodenabbruch on Wed, 14 Sep 2005 04:16:53 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=275" rel="nofollow">Unix-Tom</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/871598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/871598</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 14 Sep 2005 04:16:53 GMT</pubDate></item></channel></rss>