<?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[array durchsuchen]]></title><description><![CDATA[<p>hallo,</p>
<p>ich weiß, ich stell die Frage hier bestimmt zum x-ten mal, aber die Suchfunktion von der Seite hat nichts brauchbares geliefert.</p>
<p>Wie durchsucht man ein int array nach einer bestimmten Zahl.</p>
<p>Beispiel:</p>
<pre><code>int array array[10];

array[1]=14;
array[2]=1234;
array[3]=121;
array[4]=1123;

// und jetzt will ich nach der Zahl 121 suchen, und möchte die Stelle zurückgeliefert bekommen....
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/120579/array-durchsuchen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 10:53:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120579.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Sep 2005 14:55:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to array durchsuchen on Wed, 14 Sep 2005 14:55:54 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>ich weiß, ich stell die Frage hier bestimmt zum x-ten mal, aber die Suchfunktion von der Seite hat nichts brauchbares geliefert.</p>
<p>Wie durchsucht man ein int array nach einer bestimmten Zahl.</p>
<p>Beispiel:</p>
<pre><code>int array array[10];

array[1]=14;
array[2]=1234;
array[3]=121;
array[4]=1123;

// und jetzt will ich nach der Zahl 121 suchen, und möchte die Stelle zurückgeliefert bekommen....
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/872112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872112</guid><dc:creator><![CDATA[relativfrisch]]></dc:creator><pubDate>Wed, 14 Sep 2005 14:55:54 GMT</pubDate></item><item><title><![CDATA[Reply to array durchsuchen on Wed, 14 Sep 2005 15:00:34 GMT]]></title><description><![CDATA[<p>Bei der klassischen Suche durchläufst du es vom Anfang bis zum Ende, prüfst dabei das momentane Array-Element mit dem gesuchten Wert und gibst bei gefundenem Objekt den Index zurück und wenn du nichts findest -1.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872114</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872114</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Wed, 14 Sep 2005 15:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to array durchsuchen on Wed, 14 Sep 2005 15:01:49 GMT]]></title><description><![CDATA[<p>Wenn du in einer Liste einen Wert suchst, wie machst du das dann? Wenn dir immer noch nix einfällt, Stichwort: Lineare Suche.</p>
<p>Edit: Nein die klassische Suche gibt einen Pointer / Iterator zurück und NULL wenn nichts gefunden wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872115</guid><dc:creator><![CDATA[FireFlow]]></dc:creator><pubDate>Wed, 14 Sep 2005 15:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to array durchsuchen on Wed, 14 Sep 2005 15:00:44 GMT]]></title><description><![CDATA[<p>Was ist denn das für eine Frage?<br />
Mit ner for-Schleife und einer if-Anweisung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872116</guid><dc:creator><![CDATA[OGC]]></dc:creator><pubDate>Wed, 14 Sep 2005 15:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to array durchsuchen on Wed, 14 Sep 2005 15:03:07 GMT]]></title><description><![CDATA[<p>OGC schrieb:</p>
<blockquote>
<p>Was ist denn das für eine Frage?<br />
Mit ner for-Schleife und einer if-Anweisung</p>
</blockquote>
<p>Oder mit std::find bzw. std::find_if.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872117</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Wed, 14 Sep 2005 15:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to array durchsuchen on Thu, 15 Sep 2005 05:28:10 GMT]]></title><description><![CDATA[<p>btw, eine array beginnt bei element array[0] und nicht array[1] ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872438</guid><dc:creator><![CDATA[Vorden]]></dc:creator><pubDate>Thu, 15 Sep 2005 05:28:10 GMT</pubDate></item></channel></rss>