<?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[C++ problem]]></title><description><![CDATA[<p>Hi hab vor ein paar tagen angefangen mich mit C++ zu beschäftigen ich kann auch noch nicht viel aber ich habe im Tutorial ein programm geschriebn finde aber den fehler nicht:</p>
<p>#include &lt;iostream.h&gt;<br />
float berechneKegelvolumen(float r,float h)<br />
{<br />
const float PI=3.14f;<br />
float g=PI*r*r;<br />
float v=(g*h)/3;<br />
return v;<br />
};<br />
void main()<br />
{<br />
float radius;<br />
float hoehe;<br />
cout&lt;&lt;&quot;Bitte geben Sie den Radius ein: &quot;;<br />
cin&gt;&gt;radius;<br />
cout&lt;&lt;&quot;Bitte geben Sie die Hoehe ein: &quot;;<br />
cin&gt;&gt;hoehe;<br />
cout&lt;&lt;&quot;Das Volumen betraegt: &quot;&lt;&lt;berechneKegelvolumen(radius,hoehe)&lt;&lt;endl;<br />
};</p>
<p>wär cool wenn mir einer helfen kann <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/topic/253120/c-problem</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 02:10:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/253120.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Oct 2009 18:50:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ problem on Wed, 28 Oct 2009 18:50:05 GMT]]></title><description><![CDATA[<p>Hi hab vor ein paar tagen angefangen mich mit C++ zu beschäftigen ich kann auch noch nicht viel aber ich habe im Tutorial ein programm geschriebn finde aber den fehler nicht:</p>
<p>#include &lt;iostream.h&gt;<br />
float berechneKegelvolumen(float r,float h)<br />
{<br />
const float PI=3.14f;<br />
float g=PI*r*r;<br />
float v=(g*h)/3;<br />
return v;<br />
};<br />
void main()<br />
{<br />
float radius;<br />
float hoehe;<br />
cout&lt;&lt;&quot;Bitte geben Sie den Radius ein: &quot;;<br />
cin&gt;&gt;radius;<br />
cout&lt;&lt;&quot;Bitte geben Sie die Hoehe ein: &quot;;<br />
cin&gt;&gt;hoehe;<br />
cout&lt;&lt;&quot;Das Volumen betraegt: &quot;&lt;&lt;berechneKegelvolumen(radius,hoehe)&lt;&lt;endl;<br />
};</p>
<p>wär cool wenn mir einer helfen kann <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/1799886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1799886</guid><dc:creator><![CDATA[AtomAmeise700]]></dc:creator><pubDate>Wed, 28 Oct 2009 18:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to C++ problem on Wed, 28 Oct 2009 18:53:39 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt; // iostream, nicht iostream.h
float berechneKegelvolumen(float r,float h)
{
const float PI=3.14f;
float g=PI*r*r;
float v=(g*h)/3;
return v;
};

int main() // int main, nicht void main
{
float radius;
float hoehe;
std::cout&lt;&lt;&quot;Bitte geben Sie den Radius ein: &quot;;
std::cin&gt;&gt;radius;
std::cout&lt;&lt;&quot;Bitte geben Sie die Hoehe ein: &quot;;
std::cin&gt;&gt;hoehe;
std::cout&lt;&lt;&quot;Das Volumen betraegt: &quot;&lt;&lt;berechneKegelvolumen(radius,hoehe)&lt;&lt;endl;
};
</code></pre>
<p>Dann solltest du, wie ich die cpp-Tags nutzen und lernen deine Probleme <strong>exakt</strong> zu beschreiben.</p>
<p>Ich denke, dass du wiedermal ein Kandidat für:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-111042.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-111042.html</a><br />
bist.</p>
<p>EDIT:<br />
Den Namensraum musst du für cin, cout angeben. Der ist in dem Fall std::, also der Standard Namensraum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1799890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1799890</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Wed, 28 Oct 2009 18:53:39 GMT</pubDate></item></channel></rss>