<?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[Funktion doppelt aufrufen]]></title><description><![CDATA[<p>Guten Tag,<br />
ich wollte fragen ob es eine Funktion in vcl gibt, bei der man eine bestimmte funktion nicht doppelt aufrufen kann.<br />
Danke schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206551/funktion-doppelt-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 00:43:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206551.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Feb 2008 11:35:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktion doppelt aufrufen on Tue, 26 Feb 2008 11:35:37 GMT]]></title><description><![CDATA[<p>Guten Tag,<br />
ich wollte fragen ob es eine Funktion in vcl gibt, bei der man eine bestimmte funktion nicht doppelt aufrufen kann.<br />
Danke schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463130</guid><dc:creator><![CDATA[volvic]]></dc:creator><pubDate>Tue, 26 Feb 2008 11:35:37 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion doppelt aufrufen on Tue, 26 Feb 2008 11:41:18 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich weiß nicht genau was du mit doppelt aufrufen meinst, aber es wird nichts derartiges geben. Wozu brauchst du das?</p>
<p>Eventuell hilft dir das weiter</p>
<pre><code class="language-cpp">#include &lt;stdexcept&gt;

void Func()
{
  static bool first = true;
  if (!first)
    throw std::logic_error(&quot;Diese Funktion kann nur einmal aufgerufen werden!&quot;)
  // Hier das machen was gemacht werden soll
  first = false;
}
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463133</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 26 Feb 2008 11:41:18 GMT</pubDate></item></channel></rss>