<?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[Wurzelzieh programm]]></title><description><![CDATA[<p>Hi,</p>
<p>Hi,</p>
<p>Ich Hab das so ein Problem bin noch kompletter Anfänger im Bereich C++ und habe schon mal ein ganz ein kleines Programm gemacht</p>
<pre><code class="language-cpp">#include &lt;cmath&gt;
#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;

int main(void)

{   

    SetConsoleTitle(&quot;Wurzelziehen&quot;);
    long double userEingabe;
    cout&lt;&lt;&quot;Von welcher Zahl möchtest du die Wurzel wissen?&quot;&lt;&lt; endl;
    cin &gt;&gt; userEingabe;
    if(userEingabe !=0){
    userEingabe = sqrt(userEingabe);
    cout&lt;&lt;&quot;Die Wurzel beträgt: &quot;&lt;&lt;userEingabe&lt;&lt; endl;
    }else{
    cout&lt;&lt;&quot;Du hast kein Ahnung von Mathe&quot; &lt;&lt; endl;
    }
    cin.get();
    cin.ignore();
    return 0;
}
</code></pre>
<p>Und mein frage ist jetzt wie mach ich das, dass wenn jemand einen Buchstaben eingibt auch ein beliebiger Text kommt?</p>
<p>Danke schon mal im voraus</p>
<p>Mfg</p>
<p>Rainer</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/260542/wurzelzieh-programm</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 00:33:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/260542.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Feb 2010 17:54:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 17:56:52 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Hi,</p>
<p>Ich Hab das so ein Problem bin noch kompletter Anfänger im Bereich C++ und habe schon mal ein ganz ein kleines Programm gemacht</p>
<pre><code class="language-cpp">#include &lt;cmath&gt;
#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;

int main(void)

{   

    SetConsoleTitle(&quot;Wurzelziehen&quot;);
    long double userEingabe;
    cout&lt;&lt;&quot;Von welcher Zahl möchtest du die Wurzel wissen?&quot;&lt;&lt; endl;
    cin &gt;&gt; userEingabe;
    if(userEingabe !=0){
    userEingabe = sqrt(userEingabe);
    cout&lt;&lt;&quot;Die Wurzel beträgt: &quot;&lt;&lt;userEingabe&lt;&lt; endl;
    }else{
    cout&lt;&lt;&quot;Du hast kein Ahnung von Mathe&quot; &lt;&lt; endl;
    }
    cin.get();
    cin.ignore();
    return 0;
}
</code></pre>
<p>Und mein frage ist jetzt wie mach ich das, dass wenn jemand einen Buchstaben eingibt auch ein beliebiger Text kommt?</p>
<p>Danke schon mal im voraus</p>
<p>Mfg</p>
<p>Rainer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851555</guid><dc:creator><![CDATA[rainer123]]></dc:creator><pubDate>Sat, 06 Feb 2010 17:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 17:56:52 GMT]]></title><description><![CDATA[<p>Machst dasselbe mit char oder std::string <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/1851558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851558</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Sat, 06 Feb 2010 17:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 17:59:05 GMT]]></title><description><![CDATA[<p>Wie mit eine if befehel? und wie soll ich das eingeben ?? if(userEingabe =int ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851559</guid><dc:creator><![CDATA[rainer123]]></dc:creator><pubDate>Sat, 06 Feb 2010 17:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 18:22:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char buchstabe;
std::cout &lt;&lt; &quot;Bitte einen Buchstaben eingeben: &quot;;
std::cin &gt;&gt; buchstabe;

switch (buchstabe)
{
    case 'a':
       // Code für 'a'
       break;

    case 'b':
       // Code für 'b'
       break;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1851566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851566</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 06 Feb 2010 18:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 18:26:44 GMT]]></title><description><![CDATA[<p>Aber damit wird jemand ja nur aufgefordert eine Buchstaben einzugeben.Ich hätte so ein art Fehler meldung gerne gehabt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851568</guid><dc:creator><![CDATA[rainer123]]></dc:creator><pubDate>Sat, 06 Feb 2010 18:26:44 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 19:10:43 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">long double userEingabe;
cout&lt;&lt;&quot;Von welcher Zahl möchtest du die Wurzel wissen?&quot;&lt;&lt; endl;
cin &gt;&gt; userEingabe;
if(!cin.good())
{
   cout &lt;&lt; &quot;das war keine Zahl&quot;;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1851583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851583</guid><dc:creator><![CDATA[wx++]]></dc:creator><pubDate>Sat, 06 Feb 2010 19:10:43 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 20:35:30 GMT]]></title><description><![CDATA[<p>Oh DAnke sehr ihr habt mir so geholfen danke sehr.</p>
<p>Eine kleine frag hätte ich nocht wie macht man eine Schleife das,dass Programm dann wieder von vorne beginnt nach dem man ein Zahl eingegeben hat ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851614</guid><dc:creator><![CDATA[rainer123]]></dc:creator><pubDate>Sat, 06 Feb 2010 20:35:30 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 20:42:52 GMT]]></title><description><![CDATA[<p>rainer123 schrieb:</p>
<blockquote>
<p>Eine kleine frag hätte ich nocht wie macht man eine Schleife das,dass Programm dann wieder von vorne beginnt nach dem man ein Zahl eingegeben hat ?</p>
</blockquote>
<p>Indem man eines der Schleifenkonstrukte verwendet?<br />
(for, while)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851620</guid><dc:creator><![CDATA[seniorenopa]]></dc:creator><pubDate>Sat, 06 Feb 2010 20:42:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 20:47:51 GMT]]></title><description><![CDATA[<p>Und mit welcher bedingung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851621</guid><dc:creator><![CDATA[rainer123]]></dc:creator><pubDate>Sat, 06 Feb 2010 20:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzelzieh programm on Sat, 06 Feb 2010 21:28:07 GMT]]></title><description><![CDATA[<p>rainer123 schrieb:</p>
<blockquote>
<p>Und mit welcher bedingung?</p>
</blockquote>
<p>Die legst du selber fest... Brauner, das sind Grundlagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1851637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1851637</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Sat, 06 Feb 2010 21:28:07 GMT</pubDate></item></channel></rss>