<?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[Vokale zählen!!!]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm1::Edit1KeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
if(Key==13)
{
int x,summe,counter;
String Eingabe;

   Eingabe=Edit1-&gt;Text;
   summe=0;
   counter=0;

   for(x=1;x&lt;=Eingabe.Length();x++)
      {
        counter++;
         }
      switch(Eingabe[x])
      {
      case: 'a':
      case: 'e':
      case: 'i':
      case: 'o':
      case: 'u':counter++;
      }
      Label2-&gt;Caption=IntToStr(summe);
      Label2-&gt;Visible=true;

      }
      }
}
}
</code></pre>
<p>Also mit diesem Befehl soll durch der Enter Taste Vokale gezählt werden.<br />
Aber da hats noch Fehler drinnen. Kann wer sich das mal anschaun, und es ausbessern? Bitteeeee</p>
<p>PS: Mein borland c++ builder 3 hat ein problem. er kann die komponentenbar nicht finden. Also kann ichs auch nicht testen obs geht oder nicht geht... : (<br />
Weiß einer wo ich die Komponentenbar herkriege? Aber dass der Code oben stimmt ist erstmal wichtiger!!!</p>
<p>DANKE im voraus!!!!<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174155/vokale-zählen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 15:38:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174155.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Feb 2007 13:27:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 13:27:07 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm1::Edit1KeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
if(Key==13)
{
int x,summe,counter;
String Eingabe;

   Eingabe=Edit1-&gt;Text;
   summe=0;
   counter=0;

   for(x=1;x&lt;=Eingabe.Length();x++)
      {
        counter++;
         }
      switch(Eingabe[x])
      {
      case: 'a':
      case: 'e':
      case: 'i':
      case: 'o':
      case: 'u':counter++;
      }
      Label2-&gt;Caption=IntToStr(summe);
      Label2-&gt;Visible=true;

      }
      }
}
}
</code></pre>
<p>Also mit diesem Befehl soll durch der Enter Taste Vokale gezählt werden.<br />
Aber da hats noch Fehler drinnen. Kann wer sich das mal anschaun, und es ausbessern? Bitteeeee</p>
<p>PS: Mein borland c++ builder 3 hat ein problem. er kann die komponentenbar nicht finden. Also kann ichs auch nicht testen obs geht oder nicht geht... : (<br />
Weiß einer wo ich die Komponentenbar herkriege? Aber dass der Code oben stimmt ist erstmal wichtiger!!!</p>
<p>DANKE im voraus!!!!<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234085</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 13:38:35 GMT]]></title><description><![CDATA[<p>Ich bin mir nicht sicher, aber sollte der switch()-Block nicht IN die for-Schleife rein?</p>
<pre><code class="language-cpp">for(x=0;x&lt;Eingabe.length();++x)
{
  switch(Eingabe[x])
  {...}
}
</code></pre>
<p>(und zwischen 'case' und dem zugehörigen Wert gehört auch kein Doppelpunkt)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234095</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 13:40:21 GMT]]></title><description><![CDATA[<blockquote>
<pre><code class="language-cpp">switch(Eingabe[x])
      {
      case: 'a':
      case: 'e':
      case: 'i':
      case: 'o':
      case: 'u':counter++;
      }
</code></pre>
</blockquote>
<pre><code class="language-cpp">switch(Eingabe[x])
      {
      case a: counter++;
              break;
      case e: counter++;
              break;
      case i: counter++;
              break;
      case o: counter++;
              break;
      case u: counter++;
              break;
      }
</code></pre>
<p>ist richtiger <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="😉"
    /><br />
und er gehört in die for schleife</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234097</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234097</guid><dc:creator><![CDATA[Raxtor]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:40:21 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 13:49:55 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm1::Edit1KeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
if(Key==13)
{
int x,summe,counter;
String Eingabe;

   Eingabe=Edit1-&gt;Text;
   summe=0;
   counter=0;

   for(x=1;x&lt;=Eingabe.Length();x++)
      {
switch(Eingabe[x])
      {
      case a: counter++;
              break;
      case e: counter++;
              break;
      case i: counter++;
              break;
      case o: counter++;
              break;
      case u: counter++;
              break;
      }
}
      Label2-&gt;Caption=IntToStr(summe);
      Label2-&gt;Visible=true;

      }
      }
}
}
</code></pre>
<p>Ist das jetzt richtig so?<br />
Achja DANKE für die schnellen Antworten!!!! <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 />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234108</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 13:58:12 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">if( Key == VK_RETURN)
{
  int counter(0);
  AnsiString Eingabe=Edit1-&gt;Text;
  for(int x=1;x&lt;=Eingabe.Length();x++)
  {
     switch(Eingabe[x])
     {
       case 'a': 
       case 'e':
       case 'i':
       case 'o':
       case 'u': counter++;  break;
     }
  }
  Label2-&gt;Caption = counter;
}
</code></pre>
<p>Das reicht auch. Was ist eigentlich mit den Umlauten?<br />
[edit]Jetzt ist es richtig.[edit]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234115</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 13:57:13 GMT]]></title><description><![CDATA[<p>Wo werden denn eure Variablen a, e, i, o, u definiert? <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/1234120</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234120</guid><dc:creator><![CDATA[Fehlerfux]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:57:13 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:03:45 GMT]]></title><description><![CDATA[<p>Ich dachte, hier werden nicht die Hausaufgaben für andere gemacht... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p>Um auch A E I O U zu zählen:</p>
<pre><code class="language-cpp">AnsiString Eingabe=Edit1-&gt;Text.LowerCase();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1234130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234130</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:03:45 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:04:12 GMT]]></title><description><![CDATA[<p>?! Wofür willst du denn da Variablenhaben? Brauchst du doch garnet ... die Zeichen werden so wie Zahlen behandelt ... ich glaub du solltest dir mal nen C++ TUt anguckn -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234131</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:07:02 GMT]]></title><description><![CDATA[<p>Und ich glaub du hast nen Fehler weiter oben übersehen und dadurch meinen Wink mim Gartenzaun nicht verstanden -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234133</guid><dc:creator><![CDATA[Fehlerfux]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:08:51 GMT]]></title><description><![CDATA[<p>Das hat Braunstein doch schon erledigt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234134</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234134</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:08:51 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:09:33 GMT]]></title><description><![CDATA[<p>Ja, weil er meinen Wink gelesen hat <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>
<p>Okay, nu is aber genug OT...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234135</guid><dc:creator><![CDATA[Fehlerfux]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:09:49 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;algorithm&gt;
#include &lt;boost/algorithm/string/classification.hpp&gt;

int main()
{
    std::string test = &quot;bla bla, das ist ein test&quot;;
    size_t nVokale = std::count_if(test.begin(), test.end(), boost::is_any_of(&quot;AEIOUaeiou&quot;));
    std::cout &lt;&lt; nVokale &lt;&lt; std::endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1234136</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234136</guid><dc:creator><![CDATA[stan dard]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:19:59 GMT]]></title><description><![CDATA[<p>ok.. danke für alle antworten</p>
<p>Hätt da noch ne Frage..<br />
wär cool zu wissen wie man Wörter zählen kann..<br />
Also ich gibs zu, hab keine ahnung.. vielleicht mit dem Leerzeichen was?<br />
schon oder? Kann mir das jmd sagen? Aber bitte in dem schema, in der art wie ich das &quot;vokale zählen&quot; programm hab! des wär echt mega super! danke im voraus!!</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234148</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 14:21:30 GMT]]></title><description><![CDATA[<p>Wieder was gelernt. Boost gehört zum Standard... Mist, muß ich meine IDE wohl wegwerfer, weil boost nicht dabei ist...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234149</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 23 Feb 2007 14:21:30 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Fri, 23 Feb 2007 22:36:22 GMT]]></title><description><![CDATA[<p>Musst du ja auch installieren ... sollte normal auch nicht dabei sein <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/1234398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234398</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 23 Feb 2007 22:36:22 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 10:26:48 GMT]]></title><description><![CDATA[<p>LoSt schrieb:</p>
<blockquote>
<p>ok.. danke für alle antworten</p>
<p>Hätt da noch ne Frage..<br />
wär cool zu wissen wie man Wörter zählen kann..<br />
Also ich gibs zu, hab keine ahnung.. vielleicht mit dem Leerzeichen was?<br />
schon oder? Kann mir das jmd sagen? Aber bitte in dem schema, in der art wie ich das &quot;vokale zählen&quot; programm hab! des wär echt mega super! danke im voraus!!</p>
<p>mfg</p>
</blockquote>
<p>bitte helfen<br />
besten dank im voraus</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234529</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sat, 24 Feb 2007 10:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 15:05:00 GMT]]></title><description><![CDATA[<p>Wenn du davon ausgehst dass zwischen jedem Wort ein Leerzeichen steht, dann ja, zaehl die Leerzeichen. Musst allerdings am Ende +1 machen, wenn hinter dem letzten Wort kein Leerzeichen mehr steht.</p>
<p>Andere Methode ist es auszunutzen, dass der operator&gt;&gt; der streams das Leerzeichen als Trennzeichen nimmt. Also solange einlesen bist du Ende angekommen bist, und bei jedem einlesen +1 machen, fertig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234674</guid><dc:creator><![CDATA[Shinja]]></dc:creator><pubDate>Sat, 24 Feb 2007 15:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 16:01:16 GMT]]></title><description><![CDATA[<p>Shinja schrieb:</p>
<blockquote>
<p>Wenn du davon ausgehst dass zwischen jedem Wort ein Leerzeichen steht, dann ja, zaehl die Leerzeichen. Musst allerdings am Ende +1 machen, wenn hinter dem letzten Wort kein Leerzeichen mehr steht.</p>
</blockquote>
<p>Ja so hab ichs auch gemeint! ja!<br />
Kannst dus als Programm kurz schreiben, mit meinem schema wie beim vokale zählen?<br />
bitteeeeeee</p>
<p>Besten Dank im Voraus!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234711</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234711</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sat, 24 Feb 2007 16:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 16:07:56 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;cstring&gt;

int main(void)
{
    int WortAnzahl = 1;
    char text[] = &quot;Dies ist ein Testsatz&quot;;
    for(int i = 0; i &lt; std::strlen(text);++i)
    {
        if(text[i] == ' ')
        {
            ++WortAnzahl;
        }
    }
    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1234717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234717</guid><dc:creator><![CDATA[Phoemuex]]></dc:creator><pubDate>Sat, 24 Feb 2007 16:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 16:14:02 GMT]]></title><description><![CDATA[<p>danke aber soo check ich es nicht..<br />
gibts nicht noch ne möglichkeit auf meiner art? (siehe seite1)<br />
bitte danke <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/1234718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234718</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sat, 24 Feb 2007 16:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 16:41:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;cstring&gt;

int main(void)
{
    int WortAnzahl = 1;
    char text[] = &quot;Dies ist ein Testsatz&quot;; // Kann jeder beliebige andere Text sein 
    for(int i = 0; i &lt; std::strlen(text); ++i) // strlen holt die Länge des des Strings bis zum nächsten '\n'
        if (text[i] == ' ') // Wenn es ein Leerzeichen ist wird die Wortanzahl um 1 erhöht ...
            ++WortAnzahl;

    return 0;
}
</code></pre>
<p>Aber das ist insofern nicht richtig als das wenn manmal folgenden String übergibt der nicht das richtige ausgibt <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="😉"
    /><br />
&quot;Das ist ein Test &quot; richtig wäre 4 ... er wird dir aber 5 ausgeben ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234729</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234729</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 24 Feb 2007 16:41:52 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 21:33:33 GMT]]></title><description><![CDATA[<p>Kann mir jemand ein kleines programm mit MEINER ART (siehe seite1) schreiben, indem man Wörter zählen kann? Also mit Leerzeichen+1 oder so.. Bitte helft mir. Ist wichtig! Dankeeeee im Voraus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234887</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sat, 24 Feb 2007 21:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 23:15:42 GMT]]></title><description><![CDATA[<blockquote>
<p>Wir machen keine Haufaufgaben!</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1234926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234926</guid><dc:creator><![CDATA[Foren Codex]]></dc:creator><pubDate>Sat, 24 Feb 2007 23:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sat, 24 Feb 2007 23:33:32 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<pre><code class="language-cpp">for(int i = 0; i &lt; std::strlen(text); ++i) // strlen holt die Länge des des Strings bis zum nächsten '\n'
</code></pre>
</blockquote>
<p>Soweit kommt's noch, dass strlen bis '\n' zählt...</p>
<p><a href="http://cppreference.com/stdstring/strlen.html" rel="nofollow">http://cppreference.com/stdstring/strlen.html</a></p>
<p>&quot;The strlen() function returns the length of str (determined by the number of characters before <strong>null termination</strong>).&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234932</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Sat, 24 Feb 2007 23:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sun, 25 Feb 2007 01:11:06 GMT]]></title><description><![CDATA[<p>LoSt schrieb:</p>
<blockquote>
<p>Kann mir jemand ein kleines programm mit MEINER ART (siehe seite1) schreiben, indem man Wörter zählen kann? Also mit Leerzeichen+1 oder so.. Bitte helft mir. Ist wichtig! Dankeeeee im Voraus!!!</p>
</blockquote>
<p>Ich habe jetzt ein bischen rumprobiert... was rausgekommen ist zählt Wörter und Vokale. Hoffe das ich nicht irgendwie das Thema verfehlt habe oder so</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;stdio.h&gt;

using namespace std;

int main(void)
	{

	int vokale = 0;
	int words = 1;

	while(true)  //Endlosschleife
		{
		int input = getchar(); //Zeichenfolge wird eingelesen 
		char buchstabe = input; //buchstabe erhält den entsprechenden Wert 
		if (input != 10)
			{
			switch(buchstabe)
				{
				case 'a':
				case 'e':
				case 'i':
				case 'o':
				case 'u':
				vokale++;
				break;
				case 32:
				words++;
				}
			}
		else
			{
			break;
			}
		}

	cout&lt;&lt;&quot;Dein Satz hat &quot;&lt;&lt;words&lt;&lt;&quot; Woerter und &quot;&lt;&lt;vokale&lt;&lt;&quot; vokale&quot;&lt;&lt;endl;

	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1234948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234948</guid><dc:creator><![CDATA[dandelor]]></dc:creator><pubDate>Sun, 25 Feb 2007 01:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to Vokale zählen!!! on Sun, 25 Feb 2007 13:40:37 GMT]]></title><description><![CDATA[<p>hm danke sieht aber sehr kompliziert aus (für mich).. auch wenns wahrscheinlich voll leicht ist.<br />
gibts nicht noch andere möglichkeiten? <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="😕"
    /><br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1235138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1235138</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 25 Feb 2007 13:40:37 GMT</pubDate></item></channel></rss>