<?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[Unklarheiten]]></title><description><![CDATA[<pre><code class="language-cpp">#include&lt;iostream&gt;

using namespace std;

int main()
{
	double x, y;

	cout &lt;&lt; &quot;Geben Sie eine Zahl ein bitte: &quot;;
	if(cin.get(x) != y)
	{
		cout &lt;&lt; &quot;Ich habe gesagt, sie sollen eine Zahlen eingeben keine Buchstaben&quot; &lt;&lt; endl;
	}

	else
	{
		cout &lt;&lt; x &lt;&lt; endl;
	}
}
</code></pre>
<p>Möchte euch fragen ob das programm überhaupt funktionieren würde.</p>
<p>MFG anfängerc++</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/133342/unklarheiten</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 21:45:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133342.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Jan 2006 07:08:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 07:08:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include&lt;iostream&gt;

using namespace std;

int main()
{
	double x, y;

	cout &lt;&lt; &quot;Geben Sie eine Zahl ein bitte: &quot;;
	if(cin.get(x) != y)
	{
		cout &lt;&lt; &quot;Ich habe gesagt, sie sollen eine Zahlen eingeben keine Buchstaben&quot; &lt;&lt; endl;
	}

	else
	{
		cout &lt;&lt; x &lt;&lt; endl;
	}
}
</code></pre>
<p>Möchte euch fragen ob das programm überhaupt funktionieren würde.</p>
<p>MFG anfängerc++</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968566</guid><dc:creator><![CDATA[anfängerc++]]></dc:creator><pubDate>Tue, 17 Jan 2006 07:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 07:11:23 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du testest ja, ob x ungleich einer bisher noch unbestimmten Variable ist. Das wäre auch so, wenn ein Benutzer 3 eingeben würde.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/968568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/968568</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 17 Jan 2006 07:11:23 GMT</pubDate></item><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 15:39:11 GMT]]></title><description><![CDATA[<p>anfängerc++ schrieb:</p>
<blockquote>
<p>Möchte euch fragen ob das programm überhaupt funktionieren würde.</p>
</blockquote>
<p>Dass das vom Compiler abgewiesen wird, hättest du auch leicht selbst rauskriegen können. Das Programm ist komplett falsch, von der Idee bis zu fast jedem Detail der Ausführung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/969042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/969042</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Tue, 17 Jan 2006 15:39:11 GMT</pubDate></item><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 15:40:49 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Bashar schrieb:</p>
<blockquote>
<p>anfängerc++ schrieb:</p>
<blockquote>
<p>Möchte euch fragen ob das programm überhaupt funktionieren würde.</p>
</blockquote>
<p>Dass das vom Compiler abgewiesen wird, hättest du auch leicht selbst rauskriegen können. Das Programm ist komplett falsch, von der Idee bis zu fast jedem Detail der Ausführung.</p>
</blockquote>
<p>Naja nun sei mal nicht so gemein. Die Idee wird zwar schlecht umsetzbar sein, aber es ist eine Idee.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/969043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/969043</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 17 Jan 2006 15:40:49 GMT</pubDate></item><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 15:46:14 GMT]]></title><description><![CDATA[<blockquote>
<p>Die Idee wird zwar schlecht umsetzbar sein, aber es ist eine Idee</p>
</blockquote>
<p>Die Idee ist sehr einfach umzusetzen, nur die Umsetzung des OP lässt zu wünschen übrig. Bessere Lösung:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cstring&gt;

using namespace std;

int main() {
  char c='';
  cout&lt;&lt;&quot;Bitte zahl eingeben: &quot;;
  cin&gt;&gt;c;

  if (!isdigit(c)) {
    cout&lt;&lt;&quot;Das war keine Zahl!&quot;;
    return 1:
  }

  cout&lt;&lt;&quot;Ihre Zahl war &quot;&lt;&lt;c;

  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/969051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/969051</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Tue, 17 Jan 2006 15:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 15:49:09 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>GPC schrieb:</p>
<blockquote>
<blockquote>
<p>Die Idee wird zwar schlecht umsetzbar sein, aber es ist eine Idee</p>
</blockquote>
<p>Die Idee ist sehr einfach umzusetzen, nur die Umsetzung des OP lässt zu wünschen übrig. Bessere Lösung:</p>
<p>[</p>
</blockquote>
<p>Ich meinten den Lösungsansatz des 1. Posters. Das es eine Lösung gibt, war mir schon klar.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/969055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/969055</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 17 Jan 2006 15:49:09 GMT</pubDate></item><item><title><![CDATA[Reply to Unklarheiten on Tue, 17 Jan 2006 19:48:17 GMT]]></title><description><![CDATA[<p>ach so, na dann meinten wir das gleiche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/969277</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/969277</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Tue, 17 Jan 2006 19:48:17 GMT</pubDate></item></channel></rss>