<?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[C++ Quiz]]></title><description><![CDATA[<p>Testen Sie Ihre Kenntnisse in C++. Finden Bugs in populären Open-Source-Projekte: <a href="http://q.viva64.com/" rel="nofollow">http://q.viva64.com/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/328405/c-quiz</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 17:18:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328405.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Oct 2014 12:24:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 12:24:30 GMT]]></title><description><![CDATA[<p>Testen Sie Ihre Kenntnisse in C++. Finden Bugs in populären Open-Source-Projekte: <a href="http://q.viva64.com/" rel="nofollow">http://q.viva64.com/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421308</guid><dc:creator><![CDATA[AndreyKarpov]]></dc:creator><pubDate>Wed, 08 Oct 2014 12:24:30 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 12:38:23 GMT]]></title><description><![CDATA[<p>nett. Schaue ich mir auf jeden Fall mal genauer an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421311</guid><dc:creator><![CDATA[randa]]></dc:creator><pubDate>Wed, 08 Oct 2014 12:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 13:43:20 GMT]]></title><description><![CDATA[<p>AndreyKarpov schrieb:</p>
<blockquote>
<p>Testen Sie Ihre Kenntnisse in C++. Finden Bugs in populären Open-Source-Projekte: <a href="http://q.viva64.com/" rel="nofollow">http://q.viva64.com/</a></p>
</blockquote>
<p>Der ist Schrott. Schon in der ersten Frage steht Unsinn:</p>
<pre><code>BOOL AddTail(LPVOID p)
{ 
    ...
    if (queue.GetSize() &gt;= this-&gt;_limit);
    {
        while (queue.GetSize() &gt; this-&gt;_limit - 1)
        {
            ::WaitForSingleObject(handles[SemaphoreIndex], 1);
            queue.Delete(0);
        }
    }
    ...
}
</code></pre>
<p>Laut dem Test hätte ich auf das Semicolon hinter dem if klicken sollen, habe aber auf das this geklickt, weil es nicht ersichtlich ist, daß es sich hierbei um einen Memberfunktion handelt. So ein Test ist doch Unfug.</p>
<p>mfg Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421324</guid><dc:creator><![CDATA[mgaeckler]]></dc:creator><pubDate>Wed, 08 Oct 2014 13:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 14:03:50 GMT]]></title><description><![CDATA[<p>10/15, &quot;ready for real life c++&quot;. Puh, gerade so. Vielleicht sollte ich mir doch noch eine akademische Karriere offenhalten.</p>
<p>mgaeckler schrieb:</p>
<blockquote>
<p>Laut dem Test hätte ich auf das Semicolon hinter dem if klicken sollen, habe aber auf das this geklickt, weil es nicht ersichtlich ist, daß es sich hierbei um einen Memberfunktion handelt. So ein Test ist doch Unfug.</p>
</blockquote>
<p>Du hast einfach nicht verstanden, dass du nach Bugs suchen solltest, nicht nach Syntaxfehlern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421325</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 08 Oct 2014 14:03:50 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 16:14:22 GMT]]></title><description><![CDATA[<pre><code>bool QConfFileSettingsPrivate::readIniLine(....)
{
  int dataLen = data.length();
  ....
  if (i == lineStart + 1) {
    char ch;
    while (i &lt; dataLen &amp;&amp;
           ((ch = data.at(i) != '\n') &amp;&amp; ch != '\r'))
      ++i;
    lineStart = i;
  } else if (!inQuotes) {
  ....
}
</code></pre>
<p>Ich meckere das <code>=</code> an weil <code>ch</code> das Ergebnis des Vergleichs zugewiesen wird, der Test sagt es ist die Klammer.<br />
Sonst jede richtig.</p>
<blockquote>
<p>Laut dem Test hätte ich auf das Semicolon hinter dem if klicken sollen</p>
</blockquote>
<p>Ja, das hätte ich auch getan. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421336</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Wed, 08 Oct 2014 16:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 16:21:45 GMT]]></title><description><![CDATA[<p>mgaeckler schrieb:</p>
<blockquote>
<p>Der ist Schrott. Schon in der ersten Frage steht Unsinn:</p>
<pre><code>BOOL AddTail(LPVOID p)
{ 
    ...
    if (queue.GetSize() &gt;= this-&gt;_limit);
    {
        while (queue.GetSize() &gt; this-&gt;_limit - 1)
        {
            ::WaitForSingleObject(handles[SemaphoreIndex], 1);
            queue.Delete(0);
        }
    }
    ...
}
</code></pre>
</blockquote>
<p>Ich habe auf das if geklickt, weil die Bedingung dort und die Schleifenbedingung im Grunde gleich sind und man sich die eine haette sparen koennen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421339</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421339</guid><dc:creator><![CDATA[Marthog]]></dc:creator><pubDate>Wed, 08 Oct 2014 16:21:45 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 17:22:51 GMT]]></title><description><![CDATA[<p>Da war nicht unwesentlich viel wiederlicher code dabei.<br />
Und wenn ich am copy und pasten bin, dann werfe ich mir IMMER vor, was falsch gemacht zu haben. Und loop unrolling mache ich nicht von Hand.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421348</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Wed, 08 Oct 2014 17:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Quiz on Wed, 08 Oct 2014 18:06:06 GMT]]></title><description><![CDATA[<p>Arcoth schrieb:</p>
<blockquote>
<p>Ich meckere das <code>=</code> an weil <code>ch</code> das Ergebnis des Vergleichs zugewiesen wird, der Test sagt es ist die Klammer.</p>
</blockquote>
<p>Ja, aber gemeinst ist:</p>
<pre><code>i &lt; dataLen &amp;&amp; ((ch = data.at(i)) != '\n' &amp;&amp; ch != '\r'))
</code></pre>
<p>Deswegen die Klammer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421357</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421357</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Wed, 08 Oct 2014 18:06:06 GMT</pubDate></item></channel></rss>