<?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[problem mit sqrt oder cmath?]]></title><description><![CDATA[<p>hallo.</p>
<p>ich nochmal mit einer kleinen frage. warum kann der folgende code keine quadratwurzel berechnen?</p>
<pre><code>#include &lt;conio.h&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()
{
    cout &lt;&lt; sqrt(2);
    _getch();
    return 0;
}
</code></pre>
<p>hier die fehlermeldungen:</p>
<blockquote>
<p>.\file.cpp(10) : error C2668: 'sqrt': Mehrdeutiger Aufruf einer überladenen Funktion<br />
C:\Programme\Microsoft Visual Studio 8\VC\include\math.h(581): kann 'long double sqrt(long double)' sein<br />
C:\Programme\Microsoft Visual Studio 8\VC\include\math.h(533): oder &quot;float sqrt(float)&quot;<br />
C:\Programme\Microsoft Visual Studio 8\VC\include\math.h(128): oder &quot;double sqrt(double)&quot;<br />
bei Anpassung der Argumentliste '(int)'</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/151323/problem-mit-sqrt-oder-cmath</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 10:14:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/151323.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Jun 2006 09:54:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 09:54:57 GMT]]></title><description><![CDATA[<p>hallo.</p>
<p>ich nochmal mit einer kleinen frage. warum kann der folgende code keine quadratwurzel berechnen?</p>
<pre><code>#include &lt;conio.h&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()
{
    cout &lt;&lt; sqrt(2);
    _getch();
    return 0;
}
</code></pre>
<p>hier die fehlermeldungen:</p>
<blockquote>
<p>.\file.cpp(10) : error C2668: 'sqrt': Mehrdeutiger Aufruf einer überladenen Funktion<br />
C:\Programme\Microsoft Visual Studio 8\VC\include\math.h(581): kann 'long double sqrt(long double)' sein<br />
C:\Programme\Microsoft Visual Studio 8\VC\include\math.h(533): oder &quot;float sqrt(float)&quot;<br />
C:\Programme\Microsoft Visual Studio 8\VC\include\math.h(128): oder &quot;double sqrt(double)&quot;<br />
bei Anpassung der Argumentliste '(int)'</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1084947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084947</guid><dc:creator><![CDATA[Hans Wurst]]></dc:creator><pubDate>Sun, 25 Jun 2006 09:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 09:57:14 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du solltest vielleicht mal klarmachen, welche von den Funktionen du aufrufen willst.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084948</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 25 Jun 2006 09:57:14 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 10:01:51 GMT]]></title><description><![CDATA[<p>HALLO.</p>
<p>naja, ich will doch einfach nur die wurzel von 2 auf dem bildschirm berechnen und gleichzeitig auf dem bildschirm ausgeben. geht das nicht so?<br />
um übrigen funktionieren andere funktionen, die normalerweise in cmath enthalten sind, so auch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084951</guid><dc:creator><![CDATA[Hans Wurst]]></dc:creator><pubDate>Sun, 25 Jun 2006 10:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 10:02:26 GMT]]></title><description><![CDATA[<p>Schreib mal sqrt(2.0)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084952</guid><dc:creator><![CDATA[Ponto]]></dc:creator><pubDate>Sun, 25 Jun 2006 10:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 10:03:48 GMT]]></title><description><![CDATA[<p>Probier mal</p>
<pre><code class="language-cpp">sqrt(2.0);
</code></pre>
<p>//edit: zu spät...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084953</guid><dc:creator><![CDATA[michba]]></dc:creator><pubDate>Sun, 25 Jun 2006 10:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 10:05:40 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du musst dem Compiler sagen, welche überladene Funktion er nutzen soll. Das kannst du zum Beispiel machen, indem du konkret angibst, was du meinst.</p>
<pre><code class="language-cpp">float z = 0;
float b = sqrt(z);
</code></pre>
<p>Jetzt ist klar, dass du die float Variante benutzen möchtest.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084956</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 25 Jun 2006 10:05:40 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 10:05:45 GMT]]></title><description><![CDATA[<p>danke euch. jetzt klappts!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084957</guid><dc:creator><![CDATA[Hans Wurst]]></dc:creator><pubDate>Sun, 25 Jun 2006 10:05:45 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit sqrt oder cmath? on Sun, 25 Jun 2006 10:13:05 GMT]]></title><description><![CDATA[<p>[edit] way to slow [/edit]</p>
<p>Greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1084964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1084964</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Sun, 25 Jun 2006 10:13:05 GMT</pubDate></item></channel></rss>