<?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[probleme mit If abfrage]]></title><description><![CDATA[<p>Ich habe ein wahrscheinlich recht triviales Problem mit einer If then Abfrage.<br />
habe schon in verschiedener Literatur nachgeschaut aber irgendwie komme ich nicht auf die richtige lösung.</p>
<pre><code class="language-cpp">cin &gt;&gt; r;
	cout &lt;&lt; &quot;Ihre eingabe war :&quot;&lt;&lt; r&lt;&lt;&quot;\n&quot;;
	if (r!=&quot;e&quot;){
	cout&lt;&lt;&quot;nicht Erfüllt\n&quot;;
	}
	else{
	cout&lt;&lt;&quot;Erfüllt&quot;;
	}
	return (0);
</code></pre>
<p>O.K.<br />
bin noch blutiger Anfänger und habe nicht im Kopf wie ich in der If Then Abfrage korrekt prüfe ob die Variable &quot;r&quot; dem Buchstaben &quot;e&quot; entspricht.<br />
Die Valriable ist als &quot;Char&quot; deklariert.<br />
Ich hoffe das ich mich verständlich Ausgedrückt habe.<br />
Gruß<br />
peter</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/302639/probleme-mit-if-abfrage</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 09:13:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/302639.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Apr 2012 15:37:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to probleme mit If abfrage on Mon, 23 Apr 2012 15:37:03 GMT]]></title><description><![CDATA[<p>Ich habe ein wahrscheinlich recht triviales Problem mit einer If then Abfrage.<br />
habe schon in verschiedener Literatur nachgeschaut aber irgendwie komme ich nicht auf die richtige lösung.</p>
<pre><code class="language-cpp">cin &gt;&gt; r;
	cout &lt;&lt; &quot;Ihre eingabe war :&quot;&lt;&lt; r&lt;&lt;&quot;\n&quot;;
	if (r!=&quot;e&quot;){
	cout&lt;&lt;&quot;nicht Erfüllt\n&quot;;
	}
	else{
	cout&lt;&lt;&quot;Erfüllt&quot;;
	}
	return (0);
</code></pre>
<p>O.K.<br />
bin noch blutiger Anfänger und habe nicht im Kopf wie ich in der If Then Abfrage korrekt prüfe ob die Variable &quot;r&quot; dem Buchstaben &quot;e&quot; entspricht.<br />
Die Valriable ist als &quot;Char&quot; deklariert.<br />
Ich hoffe das ich mich verständlich Ausgedrückt habe.<br />
Gruß<br />
peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2204933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2204933</guid><dc:creator><![CDATA[Dasich]]></dc:creator><pubDate>Mon, 23 Apr 2012 15:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit If abfrage on Mon, 23 Apr 2012 15:39:08 GMT]]></title><description><![CDATA[<p>Das muss lauten</p>
<pre><code class="language-cpp">if ( r != 'e' )
</code></pre>
<p>'e' ist an Character. &quot;e&quot; ist ein String.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2204934</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2204934</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Mon, 23 Apr 2012 15:39:08 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit If abfrage on Mon, 23 Apr 2012 15:38:59 GMT]]></title><description><![CDATA[<p>if( r != 'e' )</p>
<p>Da Literal und keine Zeichenkette.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2204935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2204935</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Mon, 23 Apr 2012 15:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit If abfrage on Mon, 23 Apr 2012 15:51:35 GMT]]></title><description><![CDATA[<p>Vielen Dank für eure schnelle Hilfe.<br />
Mensch was war das für ein triviales Problem.<br />
Ich hatte zwar auch schon die Variation mit den hochgestellten Kommas ' probiert.<br />
Nur habe ich irrtümlich anstatt den hochgestellten Komma<br />
auf der Rautentaste das Hochgestellte Komma<br />
neben der Fragezeichentaste probiert.</p>
<p>Und aus diesem Grund immer einen Compilerfehler erhalten.</p>
<p>Na zumindest hab ich wieder etwas gelernt.<br />
Danke...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2204945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2204945</guid><dc:creator><![CDATA[DAsich]]></dc:creator><pubDate>Mon, 23 Apr 2012 15:51:35 GMT</pubDate></item></channel></rss>