<?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[fehlermeldung]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich nutze heute zum erstenmal DEV-CPP und habe auch gleich die erste<br />
Warnung für folgenden Programmcode bekommen:</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;

int main(){
    int meink;
    cout &lt;&lt; &quot;k-Wert eingeben: &quot;;

    cin &gt;&gt; meink;       // scanf(&quot;%d&quot;, &amp;meink);
    cout &lt;&lt; &quot;eingegeben: &quot;;
    cout &lt;&lt; meink;
    system(&quot;PAUSE&quot;);
}
</code></pre>
<p>Warnung:</p>
<pre><code>1 C:\Dev-Cpp\include\c++\3.3.1\backward\iostream.h:31,              
 from C:\Dokumente und Einstellungen\computer\Desktop\hi.cpp 
In file included from C:/Dev-Cpp/include/c++/3.3.1/backward/iostream.h:31, 
              from C:/Dokumente und Einstellungen/computer/Desktop/hi.cpp 

2 C:\Dev-Cpp\include\c++\3.3.1\backward\backward_warning.h:32 #warning 
This file includes at least one deprecated or antiquated header. 
Please consider using one of the 32 headers found in section 17.4.1.2 of 
the C++ standard. Examples include substituting the &lt;X&gt; header for the 
&lt;X.h&gt; header for C++ includes, or &lt;sstream&gt; instead of the deprecated 
header &lt;strstream.h&gt;. To disable this warning use -Wno-deprecated.
</code></pre>
<p>ich hab nur etwas verstanden, das was mit dem include nicht stimmt.<br />
Aber der Befehl #include &lt;iostream.h&gt; stimmt doch???</p>
<p>gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195394/fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 23:20:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195394.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Oct 2007 10:14:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 10:14:19 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich nutze heute zum erstenmal DEV-CPP und habe auch gleich die erste<br />
Warnung für folgenden Programmcode bekommen:</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;

int main(){
    int meink;
    cout &lt;&lt; &quot;k-Wert eingeben: &quot;;

    cin &gt;&gt; meink;       // scanf(&quot;%d&quot;, &amp;meink);
    cout &lt;&lt; &quot;eingegeben: &quot;;
    cout &lt;&lt; meink;
    system(&quot;PAUSE&quot;);
}
</code></pre>
<p>Warnung:</p>
<pre><code>1 C:\Dev-Cpp\include\c++\3.3.1\backward\iostream.h:31,              
 from C:\Dokumente und Einstellungen\computer\Desktop\hi.cpp 
In file included from C:/Dev-Cpp/include/c++/3.3.1/backward/iostream.h:31, 
              from C:/Dokumente und Einstellungen/computer/Desktop/hi.cpp 

2 C:\Dev-Cpp\include\c++\3.3.1\backward\backward_warning.h:32 #warning 
This file includes at least one deprecated or antiquated header. 
Please consider using one of the 32 headers found in section 17.4.1.2 of 
the C++ standard. Examples include substituting the &lt;X&gt; header for the 
&lt;X.h&gt; header for C++ includes, or &lt;sstream&gt; instead of the deprecated 
header &lt;strstream.h&gt;. To disable this warning use -Wno-deprecated.
</code></pre>
<p>ich hab nur etwas verstanden, das was mit dem include nicht stimmt.<br />
Aber der Befehl #include &lt;iostream.h&gt; stimmt doch???</p>
<p>gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387007</guid><dc:creator><![CDATA[neuergast]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 10:22:46 GMT]]></title><description><![CDATA[<p>Ne, bei den Standard-Headern lässt man das .h weg <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/1387014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387014</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 10:23:30 GMT]]></title><description><![CDATA[<p>Das &quot;.h&quot; solltest du für schönes C++ weglassen, dafür musst du dann aber auch immer</p>
<pre><code class="language-cpp">std::cout
</code></pre>
<p>,</p>
<pre><code class="language-cpp">std::cin
</code></pre>
<p>,... schreiben oder unter den include-zeilen</p>
<pre><code class="language-cpp">using namespace std;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1387015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387015</guid><dc:creator><![CDATA[langeweile]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 10:25:22 GMT]]></title><description><![CDATA[<p>Die beiden Header, die du dort eingebunden hast, sind veraltet - gültig sind &lt;iostream&gt; und &lt;cstdio&gt; (wobei &lt;stdio.h&gt; auch noch im Ansi-Standard enthalten ist - wegen Kompatibilität mit C).</p>
<p>(und ehe du über den nächsten Fehler stolperst - alle Standard-Funktionen und -Klassen liegen im Namensraum std, also mußt du sie entweder mit &quot;std::&quot; kennzeichnen oder mit einem &quot;using namespace std;&quot; global bekannt machen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387017</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:25:22 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 10:56:55 GMT]]></title><description><![CDATA[<p>Dankeschön. Hab wohl ein altes Buch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387049</guid><dc:creator><![CDATA[neuergast]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 12:48:01 GMT]]></title><description><![CDATA[<p>Und std::system(&quot;pause&quot;) is auch doof <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

int main()
{
    std::cout &lt;&lt; &quot;k-Wert: &quot; &lt;&lt; std::flush;
    int my_var = 0;
    std::cin &gt;&gt; my_var;
    std::cout &lt;&lt; &quot;k wurde mit &quot; &lt;&lt; my_var &lt;&lt; &quot; belegt!&quot; &lt;&lt; std::endl;

    std::cin.get();
}
</code></pre>
<p>... wobei das nur geht solange cin nicht das failbit gesetzt hat. Dann musst du das erst wegräumen und den Inhalt vom cin-Buffer löschen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387169</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 17 Oct 2007 12:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 12:50:33 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<pre><code class="language-cpp">std::cout &lt;&lt; &quot;k-Wert: &quot; &lt;&lt; std::flush;
</code></pre>
</blockquote>
<p>Das flush hier ist aber unnötig - unter Normalbedingungen sind cin und cout sowieso miteinander gekoppelt, so daß jeder Zugriff auf cin als erste Amtshandlung den cout-Puffer flusht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387171</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387171</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 17 Oct 2007 12:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to fehlermeldung on Wed, 17 Oct 2007 12:56:06 GMT]]></title><description><![CDATA[<p>Jaja <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /> Das ist mir bekannt ^^ (Und wurde auch schon mehrmals darauf hingewiesen ...) ... find es so aber ein wenig klarer was da abgehen soll ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387176</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 17 Oct 2007 12:56:06 GMT</pubDate></item></channel></rss>