<?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[struct ichar[255] ausgeben]]></title><description><![CDATA[<p>hallo,<br />
ich habe eine struktur:</p>
<pre><code class="language-cpp">struct ICHAR
{
    char ch;
    int count;
}ichar[255]
</code></pre>
<p>Diese Struktur wird verwendet um Zeichen zu zählen. Da es 255 Zeichen gibt, will ich die jetzt alle mit der dazugehörigen Anzahl ausgeben (wär hätte das gedacht *g*). Wie mache ich das jetzt, am besten in einem Editfeld? Wie bekomme ich jetzt die ganzen sachen am besten formatiert in einen string, damit ich ihn mit SetWindowText (...) ausgeben kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96589/struct-ichar-255-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 05:22:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96589.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Jan 2005 14:39:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 14:39:49 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich habe eine struktur:</p>
<pre><code class="language-cpp">struct ICHAR
{
    char ch;
    int count;
}ichar[255]
</code></pre>
<p>Diese Struktur wird verwendet um Zeichen zu zählen. Da es 255 Zeichen gibt, will ich die jetzt alle mit der dazugehörigen Anzahl ausgeben (wär hätte das gedacht *g*). Wie mache ich das jetzt, am besten in einem Editfeld? Wie bekomme ich jetzt die ganzen sachen am besten formatiert in einen string, damit ich ihn mit SetWindowText (...) ausgeben kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/685761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685761</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Mon, 03 Jan 2005 14:39:49 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 15:02:31 GMT]]></title><description><![CDATA[<p>Hab ich das jetzt richtig verstanden: Du möchtest herausfinden, wie oft ein Zeichen in einem string vorkommt?<br />
Da gibt es sicher eine Funktion für, ansonsten schreib eine Funktion, die du für jedes Zeichen wieder aufrufst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/685796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685796</guid><dc:creator><![CDATA[Anfänger14]]></dc:creator><pubDate>Mon, 03 Jan 2005 15:02:31 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 15:03:59 GMT]]></title><description><![CDATA[<p>die funktion habe ich ja schon, ich speichere die daten dafür im struct... Ich möchte jetzt wissen, wie ich dieses struct-array am besten ausgebe(in einem editfeld)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/685798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685798</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Mon, 03 Jan 2005 15:03:59 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 15:47:26 GMT]]></title><description><![CDATA[<p>Du schreibst das ganze in einer for-Schleife, die 255mal durchläuft:</p>
<pre><code class="language-cpp">string print = &quot;&quot;;
for (int i=0; i&lt;256; ++i)
{
  wsprintf ( print, &quot;%sDas Zeichen %i kommt %i mal vor!\n&quot;, print, i, ichar[i].count );
}
SetWindowText...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/685848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685848</guid><dc:creator><![CDATA[Anfänger14]]></dc:creator><pubDate>Mon, 03 Jan 2005 15:47:26 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 18:59:07 GMT]]></title><description><![CDATA[<p>dann überschreibt es doch den string immer wieder btw. ich programmier in C</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686011</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:59:07 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 20:48:50 GMT]]></title><description><![CDATA[<p>weiß dazu niemand irgendwas? Ich will das alles in einem Edit fenster ausgeben, SetWindowText(..) löscht den bestehenden des Editfields Inhalt jedoch, gibts da was anderes, ein Flag oder so</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686121</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Mon, 03 Jan 2005 20:48:50 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 21:58:52 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>besser waere eine Ausgabe in einer Listbox oder Richedit<br />
255zeiliges Editfeld <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="😞"
    /></p>
<p>MfG<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686206</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Mon, 03 Jan 2005 21:58:52 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Mon, 03 Jan 2005 22:41:59 GMT]]></title><description><![CDATA[<p>was ist der unterschied zu rich edit, und was muss ich da angeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686235</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Mon, 03 Jan 2005 22:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Tue, 04 Jan 2005 08:55:38 GMT]]></title><description><![CDATA[<p>kannst ruhig ein normales multiline edit nehmen: EM_REPLACESEL - <a href="http://www.winapi.net/index.php?inhalt=s10" rel="nofollow">http://www.winapi.net/index.php?inhalt=s10</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/686364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686364</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 04 Jan 2005 08:55:38 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Tue, 04 Jan 2005 10:27:05 GMT]]></title><description><![CDATA[<p>MasterCounter schrieb:</p>
<blockquote>
<p>dann überschreibt es doch den string immer wieder</p>
</blockquote>
<p>Nicht wirklich, dazu das %s ganz am Anfang.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686419</guid><dc:creator><![CDATA[Anfänger14]]></dc:creator><pubDate>Tue, 04 Jan 2005 10:27:05 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Tue, 04 Jan 2005 12:12:43 GMT]]></title><description><![CDATA[<p>EDIT: doppelpost</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686479</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Tue, 04 Jan 2005 12:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to struct ichar[255] ausgeben on Tue, 04 Jan 2005 12:12:06 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a>: vielen Dank, genau das brauch ich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /><br />
@anfanger14: hab ich übersehen, sorry <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/686482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686482</guid><dc:creator><![CDATA[MasterCounter]]></dc:creator><pubDate>Tue, 04 Jan 2005 12:12:06 GMT</pubDate></item></channel></rss>