<?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[zerteilen]]></title><description><![CDATA[<p>Hi wie kann ich folgendes am besten in einzelne strings teilen <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>
<p>c:\programme\testapp\artist - titel.mp3<br />
c:\programme\testapp2\artist.-.titel.html<br />
c:\programme\testapp3\artist_-_titel.mp3</p>
<p>ich bräuchte nur die files gesplittet...das heist ab dem letzten backslash.</p>
<p>mein problem ist das ich einen gesamten ablauf brauche...und der soll schauen ob<br />
&quot; - &quot; oder &quot;.-.&quot; oder &quot;<em>-</em>&quot; enthalten sind und dann nach dem letzten punkt alles löscht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/175948/zerteilen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 01:44:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/175948.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Mar 2007 17:57:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zerteilen on Thu, 15 Mar 2007 17:57:03 GMT]]></title><description><![CDATA[<p>Hi wie kann ich folgendes am besten in einzelne strings teilen <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>
<p>c:\programme\testapp\artist - titel.mp3<br />
c:\programme\testapp2\artist.-.titel.html<br />
c:\programme\testapp3\artist_-_titel.mp3</p>
<p>ich bräuchte nur die files gesplittet...das heist ab dem letzten backslash.</p>
<p>mein problem ist das ich einen gesamten ablauf brauche...und der soll schauen ob<br />
&quot; - &quot; oder &quot;.-.&quot; oder &quot;<em>-</em>&quot; enthalten sind und dann nach dem letzten punkt alles löscht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1246247</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1246247</guid><dc:creator><![CDATA[moes]]></dc:creator><pubDate>Thu, 15 Mar 2007 17:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Thu, 15 Mar 2007 19:20:30 GMT]]></title><description><![CDATA[<p>hmm also mach es doch mit std::string</p>
<pre><code class="language-cpp">std::string file_name(&quot;c:\programme\testapp\artist - titel.mp3&quot;);
std::string::size_type pos = file_name.find_last_of('\\');
if (pos != std::string::npos)
    file_name = file_name.substr(pos + 1);
</code></pre>
<p>Also wenn er '\' findet, steht in file_name dann am Ende nur das hinter '\' und sonnst alles was vorher auch drin stand.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1246285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1246285</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 15 Mar 2007 19:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Thu, 15 Mar 2007 19:45:09 GMT]]></title><description><![CDATA[<p>hi...</p>
<p>danke für die antwort...aber das ist glaube ich c++builde-code...oder??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1246301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1246301</guid><dc:creator><![CDATA[moes]]></dc:creator><pubDate>Thu, 15 Mar 2007 19:45:09 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Thu, 15 Mar 2007 20:18:31 GMT]]></title><description><![CDATA[<p>Das ist kein C++-Builder Code. Das ist reines C++ mit STL ... musst nur den Header &lt;string&gt; includieren, falls er bei dir meckert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> Und sonnst zeig die Fehlermeldungen ... wenn du was in C haben willst ... dann sag das dann schreib ich dir da was <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1246321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1246321</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 15 Mar 2007 20:18:31 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Sat, 17 Mar 2007 12:27:48 GMT]]></title><description><![CDATA[<p>hi (D)Evil...</p>
<p>danke dir...währe super nett wenn du was in c schreiben könntest... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247182</guid><dc:creator><![CDATA[moes]]></dc:creator><pubDate>Sat, 17 Mar 2007 12:27:48 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Sat, 17 Mar 2007 12:32:13 GMT]]></title><description><![CDATA[<p>Naja guck dir halt einmal strrchr an ... damit solltest du eigentlich weiter kommen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247186</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 17 Mar 2007 12:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Sat, 17 Mar 2007 12:42:04 GMT]]></title><description><![CDATA[<p>also so in etwa</p>
<pre><code class="language-cpp">#include &lt;cstring&gt;
#include &lt;cstdio&gt;

char text[] = &quot;C:\\Programme\\TestApp\\Artist - Titel.mp3&quot;;
char* pText = strrchr(text, '\\');
if (pText == NULL)
	return 0;

printf(&quot;%s&quot;, ++pText);
</code></pre>
<p>so?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247190</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 17 Mar 2007 12:42:04 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Mon, 19 Mar 2007 15:46:37 GMT]]></title><description><![CDATA[<p>hi could somebody help me to complete this??</p>
<pre><code class="language-cpp">char * Path; 
char * Artist1; 
char * Titel1; 

Path = &quot;texno parade - cocain&quot;; 
Titel1 = strstr(Path, &quot; - &quot;);  

strncpy(Artist1 ???? 

MessageBox (NULL, Artist1, 0, MB_ICONERROR); 
MessageBox (NULL, Titel1, 0, MB_ICONERROR); 
return 0;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1248515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248515</guid><dc:creator><![CDATA[moes]]></dc:creator><pubDate>Mon, 19 Mar 2007 15:46:37 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Mon, 19 Mar 2007 15:56:35 GMT]]></title><description><![CDATA[<p>Wenn wir schon WinAPI machen:</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/path.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/path.asp</a></p>
<p>Insbesondere dürfte PathFindFileName hier passen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248518</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Mon, 19 Mar 2007 15:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Mon, 19 Mar 2007 16:20:23 GMT]]></title><description><![CDATA[<p>Hi WebFritzi...</p>
<p>Mit PathFindFileName habe ich schon gearbeitet...jetzt habe ich aber schonmal einen string vorgegeben um etwas übersicht zu behalten. Mit strstr habe ich auch schon den Titel...jetzt fehlt mir halt bloß noch der Artist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248544</guid><dc:creator><![CDATA[moes]]></dc:creator><pubDate>Mon, 19 Mar 2007 16:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Mon, 19 Mar 2007 19:18:07 GMT]]></title><description><![CDATA[<p>so habs mal ein wenig abgeändert...</p>
<p>mein problem is jetzt aber noch das nach dem angegeben string noch komische zeichen mit drin sind.</p>
<p>char * Path;<br />
char * Titel1;<br />
char * Artist1;<br />
Path = &quot;t - cocain.mp3&quot;;<br />
Titel1 = strstr(Path, &quot; - &quot;);<br />
MessageBox (NULL, Titel1+3, 0, MB_ICONERROR);<br />
int test4 = strlen(Path) - strlen(Titel1);<br />
Artist1 = (char*)malloc(test4);<br />
free(Artist1);<br />
strncpy(Artist1, Path, Titel1-Path);<br />
MessageBox (NULL, Artist1, 0, MB_ICONERROR);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248697</guid><dc:creator><![CDATA[moes]]></dc:creator><pubDate>Mon, 19 Mar 2007 19:18:07 GMT</pubDate></item><item><title><![CDATA[Reply to zerteilen on Mon, 19 Mar 2007 20:47:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/15660">@moes</a>: dein Code hat keinen Sinn... du allokierst einen Speicherbereich ... gibst ihn dann wieder frei ohne etwas zu tun und kopiert dann da noch was rein ... obwohl er nicht mehr allokiert ist ..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248771</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Mon, 19 Mar 2007 20:47:05 GMT</pubDate></item></channel></rss>