<?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[Wert Suchen ausgeben]]></title><description><![CDATA[<p>Hallo!</p>
<p>es ist nur kleines program in C. es geht soweit, weiss jemand perzufall wie ich den dritten string ausgeben kann? Muss 3ten wert ausgeben. leerzeichen (ascii Wert 20). Die zahl 0039049 wäre eingetlich nicht bekannt und das programm muss so suchen, dass es merkt sobalt ein anderer wert kommt als 20 (leerschlag), dass ein string kommt und dort muss es den dritten string (FETT makert) nehmen und ausgeben.</p>
<p>#include &lt;cstdlib&gt;<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int main(int argc, char *argv[])<br />
{<br />
char str[] = &quot; 0 AZ <strong>0039049</strong> 001522300x&quot;;<br />
char * pch;<br />
pch=strchr(str,' ');// NULL an letzer stelle<br />
printf(&quot;Das Ziffer 00122300 kommt an Stelle %d vor\n&quot;,pch-str+1);</p>
<p>system(&quot;PAUSE&quot;);<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206021/wert-suchen-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 01:00:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206021.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Feb 2008 13:58:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wert Suchen ausgeben on Wed, 20 Feb 2008 13:58:55 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>es ist nur kleines program in C. es geht soweit, weiss jemand perzufall wie ich den dritten string ausgeben kann? Muss 3ten wert ausgeben. leerzeichen (ascii Wert 20). Die zahl 0039049 wäre eingetlich nicht bekannt und das programm muss so suchen, dass es merkt sobalt ein anderer wert kommt als 20 (leerschlag), dass ein string kommt und dort muss es den dritten string (FETT makert) nehmen und ausgeben.</p>
<p>#include &lt;cstdlib&gt;<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int main(int argc, char *argv[])<br />
{<br />
char str[] = &quot; 0 AZ <strong>0039049</strong> 001522300x&quot;;<br />
char * pch;<br />
pch=strchr(str,' ');// NULL an letzer stelle<br />
printf(&quot;Das Ziffer 00122300 kommt an Stelle %d vor\n&quot;,pch-str+1);</p>
<p>system(&quot;PAUSE&quot;);<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459466</guid><dc:creator><![CDATA[Desi]]></dc:creator><pubDate>Wed, 20 Feb 2008 13:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Wert Suchen ausgeben on Wed, 20 Feb 2008 14:22:07 GMT]]></title><description><![CDATA[<p>Ich leiste hier mal einen freundlichen Dienst und korrigiere deine Message ein wenig. Etwas mehr Mühe beim Schreiben wäre schon angebracht, vor allem wenn man nicht nur trollen will sondern auch noch erwartet daß sich jemand Zeit für dich nimmt.</p>
<p>---------------</p>
<p>Hallo!</p>
<p>es ist nur kleines <strong>Programm</strong> in <strong>C++</strong>. <strong>Es</strong> geht soweit, weiss jemand <strong>per Zufall</strong> wie ich <strong>das dritte Wort des C-Strings</strong> ausgeben kann? Die <strong>Ziffernfolge</strong> 0039049 wäre <strong>eigentlich</strong> nicht bekannt und das <strong>Programm</strong> muss <strong>solange</strong> suchen, <strong>bis</strong> es merkt <strong>das</strong> ein anderer <strong>Wert</strong> kommt als 20 (<strong>Leerzeichen</strong>), dass eine <strong>Ziffer</strong> kommt und dort muss es <strong>das dritte Wort</strong> (<strong>fett markiert</strong>) nehmen und ausgeben.</p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

int main(int argc, char *argv[])
{
  char str[] = &quot; 0    AZ     0039049 001522300x&quot;;
  char * pch;
  pch=strchr(str,' ');// NULL an letzter Stelle
  printf(&quot;Die Ziffernfolge 00122300 kommt an Stelle %d vor\n&quot;,pch-str+1);

    system(&quot;PAUSE&quot;);
    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1459487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459487</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Wed, 20 Feb 2008 14:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to Wert Suchen ausgeben on Wed, 20 Feb 2008 14:38:45 GMT]]></title><description><![CDATA[<p>Ja, danke dir!</p>
<p>habe im moment extrem Stress <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Und ich bitte um Entschuldigung wegen meiner schlechten Rechtschreibung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459497</guid><dc:creator><![CDATA[Desi]]></dc:creator><pubDate>Wed, 20 Feb 2008 14:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to Wert Suchen ausgeben on Wed, 20 Feb 2008 14:46:42 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;vector&gt;
#include &lt;string&gt;
#include &lt;iostream&gt;

using namespace std;

int main( )
{
	const char str[ ] = &quot; 0 AZ 0039049 001522300x&quot;;

	std::string temp( str );

	std::string::size_type pos		= temp.find( ' ', 0 );
	std::string::size_type old_pos	= 0;

	std::vector&lt; std::string &gt; substrings;

	while( pos != std::string::npos ) {

		old_pos = ++pos;
		pos = temp.find( ' ', pos );

		substrings.push_back( temp.substr( old_pos, pos - old_pos ) );
	}

	for( std::vector&lt; std::string &gt;::size_type i = 0, size = substrings.size( ); i &lt; size; ++i ) {

		std::cout &lt;&lt; i + 1 &lt;&lt; &quot;: &quot; &lt;&lt; substrings[ i ] &lt;&lt; std::endl;
	}
}
</code></pre>
<p>greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459508</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Wed, 20 Feb 2008 14:46:42 GMT</pubDate></item><item><title><![CDATA[Reply to Wert Suchen ausgeben on Wed, 20 Feb 2008 15:06:24 GMT]]></title><description><![CDATA[<p>Danke dir Vielmals! Den Rest versuche ich jetzt noch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1459528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1459528</guid><dc:creator><![CDATA[Desi]]></dc:creator><pubDate>Wed, 20 Feb 2008 15:06:24 GMT</pubDate></item></channel></rss>