<?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[do while schleife (2 anwendungen??)]]></title><description><![CDATA[<p>Servus ich hab folgendes problem</p>
<p>und zwar dieser code</p>
<pre><code>#include &lt;iostream.h&gt;

char Programm;
int Zusatz;

void main() {
        do{
        cout&lt;&lt;&quot;Ihnen stehen folgende Verfuehrungsprogramme zur Verfuegung!&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;a Massage&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;b Whirlpool\n&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;Tippen Sie die jeweiligen Buchstaben (a oder b) ein fuer die Auswahl!&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;Bitte eingeben: &quot;;
        cin &gt;&gt; Programm;
        }[i][b]while(Programm != 'a');[/b][/i]
</code></pre>
<p>ich brauch da zwei anweisungen drin d.h. das die schleife wiederholt wird wenn NICHT a ODER b eingegeben wurde.<br />
hab schon so versucht <strong>'a' || 'b'</strong> oder so <strong>('a' ||'b')</strong> oder <strong>'a', 'b'</strong> aber ich kriegs nicht gebacken das ich da 2 Anwendungen reinkrieg.<br />
Wisst ihr was?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/191909/do-while-schleife-2-anwendungen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 27 Sep 2026 06:51:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/191909.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Sep 2007 22:49:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to do while schleife (2 anwendungen??) on Fri, 07 Sep 2007 22:49:01 GMT]]></title><description><![CDATA[<p>Servus ich hab folgendes problem</p>
<p>und zwar dieser code</p>
<pre><code>#include &lt;iostream.h&gt;

char Programm;
int Zusatz;

void main() {
        do{
        cout&lt;&lt;&quot;Ihnen stehen folgende Verfuehrungsprogramme zur Verfuegung!&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;a Massage&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;b Whirlpool\n&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;Tippen Sie die jeweiligen Buchstaben (a oder b) ein fuer die Auswahl!&quot;&lt;&lt;endl;
        cout&lt;&lt;&quot;Bitte eingeben: &quot;;
        cin &gt;&gt; Programm;
        }[i][b]while(Programm != 'a');[/b][/i]
</code></pre>
<p>ich brauch da zwei anweisungen drin d.h. das die schleife wiederholt wird wenn NICHT a ODER b eingegeben wurde.<br />
hab schon so versucht <strong>'a' || 'b'</strong> oder so <strong>('a' ||'b')</strong> oder <strong>'a', 'b'</strong> aber ich kriegs nicht gebacken das ich da 2 Anwendungen reinkrieg.<br />
Wisst ihr was?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361112</guid><dc:creator><![CDATA[kasmo]]></dc:creator><pubDate>Fri, 07 Sep 2007 22:49:01 GMT</pubDate></item><item><title><![CDATA[Reply to do while schleife (2 anwendungen??) on Fri, 07 Sep 2007 23:10:18 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">Programm != 'a' &amp;&amp; Programm != 'b'
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1361118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361118</guid><dc:creator><![CDATA[Tanren]]></dc:creator><pubDate>Fri, 07 Sep 2007 23:10:18 GMT</pubDate></item><item><title><![CDATA[Reply to do while schleife (2 anwendungen??) on Fri, 07 Sep 2007 23:14:52 GMT]]></title><description><![CDATA[<p>boa bin ich bekloppt<br />
ich war so nah dran ich hatte || die oder funktion benutzt und da hatte es nicht geklappt...</p>
<p>danke <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/1361120</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361120</guid><dc:creator><![CDATA[kasmo]]></dc:creator><pubDate>Fri, 07 Sep 2007 23:14:52 GMT</pubDate></item><item><title><![CDATA[Reply to do while schleife (2 anwendungen??) on Sat, 08 Sep 2007 08:19:23 GMT]]></title><description><![CDATA[<p>kasmo schrieb:</p>
<blockquote>
<p>boa bin ich bekloppt<br />
ich war so nah dran ich hatte || die oder funktion benutzt und da hatte es nicht geklappt...</p>
<p>danke <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>
</blockquote>
<p>Wäre auch kein Problem gewesen:</p>
<pre><code class="language-cpp">Programm != 'a' &amp;&amp; Programm != 'b'
</code></pre>
<p>&lt;=&gt;</p>
<pre><code class="language-cpp">!(Programm == 'a' || Programm == 'b')
</code></pre>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361164</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Sat, 08 Sep 2007 08:19:23 GMT</pubDate></item></channel></rss>