<?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[Zahl]]></title><description><![CDATA[<p>Hi,<br />
Ich wollte mal fragen, wie ich prüfen kann, ob a eine Nummer zwischen 0 - 9 ist.</p>
<pre><code class="language-cpp">char a = ' ';
int num;
while(a != 'q')
{
   a = getchar();
   num = ?
   if(a == num)
      std::cout &lt;&lt; &quot;num&quot;;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/138042/zahl</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 00:44:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/138042.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Feb 2006 20:55:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 20:55:31 GMT]]></title><description><![CDATA[<p>Hi,<br />
Ich wollte mal fragen, wie ich prüfen kann, ob a eine Nummer zwischen 0 - 9 ist.</p>
<pre><code class="language-cpp">char a = ' ';
int num;
while(a != 'q')
{
   a = getchar();
   num = ?
   if(a == num)
      std::cout &lt;&lt; &quot;num&quot;;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1000653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000653</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Wed, 22 Feb 2006 20:55:31 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 20:58:50 GMT]]></title><description><![CDATA[<p>wenn die nummer größer oder kleiner als 0 oder 9 ist kannst du eine if bedingung stellen die ein ergebnis zurückgibt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000657</guid><dc:creator><![CDATA[xxxxxxxxxx]]></dc:creator><pubDate>Wed, 22 Feb 2006 20:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 21:02:24 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">if ((num &gt;= 0) &amp;&amp; (num &lt;= 9))
{
//num ist eine zahl zwischen 0-9
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1000661</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000661</guid><dc:creator><![CDATA[icepacker]]></dc:creator><pubDate>Wed, 22 Feb 2006 21:02:24 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 21:10:01 GMT]]></title><description><![CDATA[<p>NEIN, das weiß ich selber, entschuldigt mich, falls ich meine Frage nich genauer definiert habe.</p>
<p>GIbt es eine Funktion, die die Zahl aus dem String in die num variable speichert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000670</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Wed, 22 Feb 2006 21:10:01 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 21:37:19 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>char ist auch ein Integer-Typ, also kannt du direkt zuweisen</p>
<pre><code class="language-cpp">char a = '1';
int num = a;
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000690</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 22 Feb 2006 21:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 21:42:46 GMT]]></title><description><![CDATA[<p>ich habe es jetzt selber gefunden</p>
<p>atoi(char *str);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000697</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Wed, 22 Feb 2006 21:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Wed, 22 Feb 2006 21:47:15 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>dann schau dir aber den Unterschied an zwischen char (das in deinem ersten Beispeil war) und char * (das in deiner Lösung war).<br />
Und am besten noch den Thread in der C++ FAQ übers Konvertieren, damit du auch mit aktuellen C++ Funktionen arbeitest und nicht mit veralteten C-Funktionen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000701</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 22 Feb 2006 21:47:15 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Thu, 23 Feb 2006 00:25:23 GMT]]></title><description><![CDATA[<p>Ich habe noch ein Problem:</p>
<p>Ich habe bbei dem FAQ Eintrak konvertierung absolut nichts verstanden...</p>
<p>ich überlege schon lange, wie ich diese zwei funktionen schreiben kann.</p>
<pre><code class="language-cpp">void wchar_t* convert(const std::basic_string&lt;char&gt;&amp; str)
{
}

void char* convert(const std::basic_string&lt;wchar_t&gt;&amp; str)
{
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1000737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000737</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Thu, 23 Feb 2006 00:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl on Thu, 23 Feb 2006 06:19:30 GMT]]></title><description><![CDATA[<p>icepacker schrieb:</p>
<blockquote>
<pre><code class="language-cpp">if ((num &gt;= 0) &amp;&amp; (num &lt;= 9))
{
//num ist eine zahl zwischen 0-9
}
</code></pre>
</blockquote>
<p>ist aber nur volksmunderisch richtig. mathematisch wäre es falsch. er sagte nicht</p>
<p>VON 0 bis EINSCHLIESSLICH 9</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1000768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1000768</guid><dc:creator><![CDATA[matheprof]]></dc:creator><pubDate>Thu, 23 Feb 2006 06:19:30 GMT</pubDate></item></channel></rss>