<?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[Elemente != 0 finden]]></title><description><![CDATA[<p>Hallo!</p>
<p>ich suche eine Funktion, mit der ich in einem Vektor (aus Containerklasse &lt;vector&gt;) alle Element ungleich Null zählen kann. In meinem Vektor sind Zahlen ungleich und gleich Null gemischt. Gibt es bereits eine solche Funktion oder muss ich diese selbst schreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121214/elemente-0-finden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 14:44:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121214.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Sep 2005 09:38:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Elemente != 0 finden on Wed, 21 Sep 2005 09:38:48 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>ich suche eine Funktion, mit der ich in einem Vektor (aus Containerklasse &lt;vector&gt;) alle Element ungleich Null zählen kann. In meinem Vektor sind Zahlen ungleich und gleich Null gemischt. Gibt es bereits eine solche Funktion oder muss ich diese selbst schreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876916</guid><dc:creator><![CDATA[Maria123]]></dc:creator><pubDate>Wed, 21 Sep 2005 09:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Elemente != 0 finden on Wed, 21 Sep 2005 09:40:52 GMT]]></title><description><![CDATA[<p>count_if() sollte deins sein<br />
<a href="http://www.cppreference.com/cppalgorithm/count_if.html" rel="nofollow">http://www.cppreference.com/cppalgorithm/count_if.html</a><br />
<a href="http://www.cpp-tutor.de/cpp/le18/le18_04.htm" rel="nofollow">http://www.cpp-tutor.de/cpp/le18/le18_04.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/876917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876917</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 21 Sep 2005 09:40:52 GMT</pubDate></item><item><title><![CDATA[Reply to Elemente != 0 finden on Wed, 21 Sep 2005 09:41:15 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;algorithm&gt;

void f()
{
  std::vector&lt;int&gt; v;
  int anz0 = std::count( v.begin(), v.end(), 0);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/876918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876918</guid><dc:creator><![CDATA[niemand]]></dc:creator><pubDate>Wed, 21 Sep 2005 09:41:15 GMT</pubDate></item></channel></rss>