<?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[Strtok für string gesucht?]]></title><description><![CDATA[<p>strtok gibts ja für char aber gibts das auch für strings? also statt char[] will ich das für strings machen hab da leider nix gefunden?</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
#include &lt;string.h&gt;

int main ()
{
  char str[] =&quot;This is a sample string,just testing.&quot;;  //-&gt; sollte string ?sein?
  char * pch;
  printf (&quot;Splitting string \&quot;%s\&quot; in tokens:\n&quot;,str);
  pch = strtok (str,&quot; &quot;);
  while (pch != NULL)
  {
    printf (&quot;%s\n&quot;,pch);
    pch = strtok (NULL, &quot; ,.&quot;);
  }
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/88455/strtok-für-string-gesucht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 16:26:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88455.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Oct 2004 09:07:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 09:07:56 GMT]]></title><description><![CDATA[<p>strtok gibts ja für char aber gibts das auch für strings? also statt char[] will ich das für strings machen hab da leider nix gefunden?</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
#include &lt;string.h&gt;

int main ()
{
  char str[] =&quot;This is a sample string,just testing.&quot;;  //-&gt; sollte string ?sein?
  char * pch;
  printf (&quot;Splitting string \&quot;%s\&quot; in tokens:\n&quot;,str);
  pch = strtok (str,&quot; &quot;);
  while (pch != NULL)
  {
    printf (&quot;%s\n&quot;,pch);
    pch = strtok (NULL, &quot; ,.&quot;);
  }
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/625220</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625220</guid><dc:creator><![CDATA[Downset]]></dc:creator><pubDate>Sun, 10 Oct 2004 09:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 09:21:03 GMT]]></title><description><![CDATA[<p>du könntest es selber recht einfach realisieren, z.b. indem du alle vorkommen des tokens merkst, und dann substrings entsprechend dieser offsets erstellst. die aber nach char ** zu bekommen wird nicht ganz einfach, nicht um sonst benutzt man die string klasse, die einem den ganzen speichermist vom hals hält</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625224</guid><dc:creator><![CDATA[Korbinian]]></dc:creator><pubDate>Sun, 10 Oct 2004 09:21:03 GMT</pubDate></item><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 09:32:47 GMT]]></title><description><![CDATA[<p>Schau dir mal <a href="http://www.boost.org/libs/tokenizer/index.html" rel="nofollow">boost::tokenizer</a> an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625230</guid><dc:creator><![CDATA[fubar]]></dc:creator><pubDate>Sun, 10 Oct 2004 09:32:47 GMT</pubDate></item><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 09:48:52 GMT]]></title><description><![CDATA[<p>boa boost:u tokenizer das ist ja psycho da muckt mein visual??<br />
#include&lt;boost/tokenizer.hpp&gt; -&gt; fatal error C1083: Include-Datei kann nicht geöffnet werden: 'boost/tokenizer.hpp': No such file or directory</p>
<blockquote>
<p>die aber nach char ** zu bekommen</p>
</blockquote>
<p>ich will das ja nicht nach char bekommen? ich habe einen string in dem das drinnen steht string bla =&quot;23,23,23,23&quot;; jetzt hab ich mir gedacht ich könnte den string irgendwie teilen und dann formatiert mit sscanf die zahlen auslesen das funzt im oberen bsp auch mit sscanf hab ich probiert nur hab ich eben alles in einem string und da gibts den strtok nicht ? und dann könnte ich ja auch etwas kompliziertere strings teilen u formatiert auslesen zb {{23,23}}{{243,243}}{{2,3}} die in einzelteile teilen {{2,3}}-&gt; so und dann mit sscanf auslesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625236</guid><dc:creator><![CDATA[Downset]]></dc:creator><pubDate>Sun, 10 Oct 2004 09:48:52 GMT</pubDate></item><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 09:52:28 GMT]]></title><description><![CDATA[<p>Downset schrieb:</p>
<blockquote>
<p>No such file or directory</p>
</blockquote>
<p>Das heißt dann wohl, daß entweder Boost nicht richtig [gar nicht?] installiert ist, oder der Pfad falsch angegeben wurde ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625237</guid><dc:creator><![CDATA[fubar]]></dc:creator><pubDate>Sun, 10 Oct 2004 09:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 10:22:33 GMT]]></title><description><![CDATA[<p>???versteh ich nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625258</guid><dc:creator><![CDATA[Downset]]></dc:creator><pubDate>Sun, 10 Oct 2004 10:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to Strtok für string gesucht? on Sun, 10 Oct 2004 10:50:51 GMT]]></title><description><![CDATA[<p>Downset:</p>
<p>Ganz einfach du musst dem VC++ sagen das er in dem include verzeichniss (z.B. (bei mir &quot;C:\Boost\include\boost-1_31&quot;) nach gucken muss</p>
<p>wenn du nu z.B. C:\Boost\include\boost-1_31\boost draus machst, findet er &lt;boost\tokenizer.hpp&gt; auch net, weil es für ihn dann nur &lt;tokenizer.hpp&gt; ist.<br />
usw.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625266</guid><dc:creator><![CDATA[evilissimo]]></dc:creator><pubDate>Sun, 10 Oct 2004 10:50:51 GMT</pubDate></item></channel></rss>