<?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[Anfängerfrage]]></title><description><![CDATA[<p>Also ich habe grade angefangen c++ zu lernen un kommt grade nich weiter. Ich lerne es mit dem online buch von <a href="http://highscore.de" rel="nofollow">highscore.de</a>. aber immer wenn ich ein Tutorial fertig habe und er dann staren will öffnet sich das Fenster nur ganz kurz und schließt auch gleich wieder, auch wenn ich den Code direkt von der HP kopiere.</p>
<p>Hier der Code</p>
<p>**#include &lt;iostream&gt;</p>
<p>int main()<br />
{<br />
char c;</p>
<p>c = 65;<br />
std::cout &lt;&lt; &quot;c: &quot; &lt;&lt; c &lt;&lt; std::endl;<br />
}**</p>
<p>könnt ihr mir sagen was ich falsch machen??</p>
<p>danke schonmal im vorraus für jede hilfe.#+</p>
<p>MfG FreeeezY</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157269/anfängerfrage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 01:38:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157269.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Aug 2006 10:13:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:13:04 GMT]]></title><description><![CDATA[<p>Also ich habe grade angefangen c++ zu lernen un kommt grade nich weiter. Ich lerne es mit dem online buch von <a href="http://highscore.de" rel="nofollow">highscore.de</a>. aber immer wenn ich ein Tutorial fertig habe und er dann staren will öffnet sich das Fenster nur ganz kurz und schließt auch gleich wieder, auch wenn ich den Code direkt von der HP kopiere.</p>
<p>Hier der Code</p>
<p>**#include &lt;iostream&gt;</p>
<p>int main()<br />
{<br />
char c;</p>
<p>c = 65;<br />
std::cout &lt;&lt; &quot;c: &quot; &lt;&lt; c &lt;&lt; std::endl;<br />
}**</p>
<p>könnt ihr mir sagen was ich falsch machen??</p>
<p>danke schonmal im vorraus für jede hilfe.#+</p>
<p>MfG FreeeezY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123559</guid><dc:creator><![CDATA[FreeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:13:04 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:18:03 GMT]]></title><description><![CDATA[<p><a href="http://c-plusplus.net/forum/viewtopic-var-t-is-151578.html" rel="nofollow">Die 2. meistgestellte Frage</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123564</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:18:53 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das ist wohl die häufigste aller gestellten Fragen und daher empfehle ich dir entweder die FAQ oder den Beitrag : häufig gestellte Fragen hier direkt im Forum.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123565</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:18:53 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:29:50 GMT]]></title><description><![CDATA[<p>ja, ich habe das thema grade gesehen und mir den abschnut auch durchgelesen. Nur konnte mir das nciht wirklich weiter helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123579</guid><dc:creator><![CDATA[FreeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:29:50 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:32:58 GMT]]></title><description><![CDATA[<p>FreeeezY schrieb:</p>
<blockquote>
<p>ja, ich habe das thema grade gesehen und mir den abschnut auch durchgelesen. Nur konnte mir das nciht wirklich weiter helfen.</p>
</blockquote>
<p>Warum? Hast Du auch die Links die dort angegeben waren weiterverfolgt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123584</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:42:08 GMT]]></title><description><![CDATA[<p>ja, &quot;Automatisches Schließen verhindern&quot; dorthin. konnt mir meinermeinung nach aber nichr helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123591</guid><dc:creator><![CDATA[FreeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:42:08 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:49:53 GMT]]></title><description><![CDATA[<p>Meiner Meinung nach kann Dir das helfen. Probier's mal. Und wenn's nicht klappt, dann zeig mal das was Du versucht hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123596</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:49:53 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 10:50:36 GMT]]></title><description><![CDATA[<p>removed</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123597</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123597</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Thu, 24 Aug 2006 10:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:01:04 GMT]]></title><description><![CDATA[<p>Könntet ihr mir vielleicht mal den Code so schreiben das er funktioniert?? Vielleicht würde ich es dann besser verstehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123610</guid><dc:creator><![CDATA[FreeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:03:41 GMT]]></title><description><![CDATA[<p>Dein Programm ist so vollkommen richtig. Du startest es nur falsch. Öffne mal die Konsole und starte es von da aus und du wirst sehen, dass nichts falsch ist.<br />
Die Konsole offen zu halten ist nicht klug, denn dann kann dein Konsolenprogramm nicht von anderen Programmen gestartet werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123616</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:03:41 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:08:13 GMT]]></title><description><![CDATA[<p>FreeeezY schrieb:</p>
<blockquote>
<p>Könntet ihr mir vielleicht mal den Code so schreiben das er funktioniert?? Vielleicht würde ich es dann besser verstehen.</p>
</blockquote>
<p>Was hast Du denn schon versucht? Zeig doch mal das was nicht geklappt hat.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/13970">@Lolz</a>: bei solchen Programmen ist es imho vollkommen in Ordnung die Konsole offen zu halten. Er will ja schließlich was sehen. Wenn man ein commandline-Tool schreibt ist das natürlich anders.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123621</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:08:13 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:16:21 GMT]]></title><description><![CDATA[<p>kann mir bitte mal wer den Befehl hier posten, damit ich das Prog. in der Konsole starten kann??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123637</guid><dc:creator><![CDATA[FreeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:16:21 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:18:15 GMT]]></title><description><![CDATA[<p>Wie heißt Dein Programm denn, und welches Betriebssystem verwendest Du?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123642</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:18:15 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:19:06 GMT]]></title><description><![CDATA[<p>Wo ist eigentlich im VC2005EE die Einstellung, damit die Konsole offen bleibt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123643</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123643</guid><dc:creator><![CDATA[Nebenfrage]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:19:06 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:37:46 GMT]]></title><description><![CDATA[<p>Benuze Windows XP Professional. Das Programm heißt &quot;Projekt1&quot;.<br />
Viel weiter bin ich mit den Code ja immer noch nicht, weil ich nicht weiß wo ich das:</p>
<p><em>void wait ()<br />
{<br />
std::cin.clear();<br />
std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());<br />
std::cin.get();<br />
}</em></p>
<p>dann einfügen muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123672</guid><dc:creator><![CDATA[FreeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:37:46 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:38:48 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int main()
{
    wait();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1123673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123673</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:47:40 GMT]]></title><description><![CDATA[<p>FreeeezY schrieb:</p>
<blockquote>
<p>Benuze Windows XP Professional. Das Programm heißt &quot;Projekt1&quot;.</p>
</blockquote>
<p>Dann kannste es über die konsole aufrufen, indem Du ins Projektverzeichnis und dort in debug gehst und dann &quot;Projekt1&quot; eingibst.</p>
<blockquote>
<p>Viel weiter bin ich mit den Code ja immer noch nicht, weil ich nicht weiß wo ich das:</p>
<p><em>void wait ()<br />
{<br />
std::cin.clear();<br />
std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());<br />
std::cin.get();<br />
}</em></p>
<p>dann einfügen muss.</p>
</blockquote>
<p>Aber dann behaupte doch nicht, das kann Dir nix helfen, sondern sag wo die Probleme liegen. Kopier's einfach vor der main in den Code. 1310-Logik hat ja schon gesagt, wie man's aufruft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123683</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:47:40 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 11:50:51 GMT]]></title><description><![CDATA[<p>asdf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123689</guid><dc:creator><![CDATA[a]]></dc:creator><pubDate>Thu, 24 Aug 2006 11:50:51 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:21:04 GMT]]></title><description><![CDATA[<p>Jester kannst du mir dann nochmal genauer erklären? mit der Konsole damit kenne ich mich noch gar nicht aus wenn ich ehrlich bin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123714</guid><dc:creator><![CDATA[FreeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:21:04 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:25:02 GMT]]></title><description><![CDATA[<p>Du wirst doch zumindest mal DOS benutzt haben?!<br />
Eigentlich brauchste nicht viel, cd Verzeichnisname wechselt das Verzeichnis, cd .. geht ins übergeordnete Verzeichnis, dir zeigt den Verzeichnisinhalt und der einfache Dateiname führt eine Datei aus.<br />
Starten kannst du die Konsole (ab Win2k) mit Startmenü -&gt; Ausführen -&gt; &quot;cmd&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123722</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:25:02 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:42:27 GMT]]></title><description><![CDATA[<p>ne hab noch nie DOS benuzt. bin ja erst 15 jahre alt und hab deswegen ach keine ahnugn davon.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123736</guid><dc:creator><![CDATA[FreeeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:46:41 GMT]]></title><description><![CDATA[<p>Muss man wenn man imVerzeichiss ist und die Datei öffnen will. das &quot;.exe&quot; mit dran hängen oder nicht??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123741</guid><dc:creator><![CDATA[FreeeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:46:41 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:51:11 GMT]]></title><description><![CDATA[<p>Dann bist Du ja noch jung und lernfähig. Genau das richtige Alter um zu lernen wie man Eigeninitiative zeigt und sich auch selbst mal was erarbeitet. Das grundsätzliche Rüstzeug hast Du jetzt, wie man eine Konsole öffnet und Verzeichnisse wechselt. Die Ähnlichkeit der Verzeichnisanzeige der Konsole mit gewissen Sachen die Du schonmal im Explorer gesehen hast sollte Dir direkt ins Auge springen.</p>
<p>Und selbst wenn Du die Konsole nicht selbst öffnen willst, wurde Dir bereits erklärt wo Du die <em>wait</em> Funktion hinsetzen musst und wie Du sie in <em>main</em> aufrufst. Zu der Eigenständigkeit gehört jetzt das wenigstens mal auszuprobieren. Bei konkreten Fragen helfen wir gern, doch das ist ein Programmierforum und keines für Computergrundlagen wie &quot;was ist ein DOS-Fenster&quot;.</p>
<p>FreeeeezY schrieb:</p>
<blockquote>
<p>Muss man wenn man imVerzeichiss ist und die Datei öffnen will. das &quot;.exe&quot; mit dran hängen oder nicht??</p>
</blockquote>
<p>Wie wärs mit ausprobieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123747</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:51:11 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:51:17 GMT]]></title><description><![CDATA[<p>Nein, musst du nicht. Dafür sorgt der Eintrag &quot;.EXE&quot; in der Umgebungsvariable PATHEXT.<br />
Warum hast du es nicht einfach ausprobiert?! Wäre bestimmt schneller gegangen als nochmal zu posten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123748</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123748</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:51:17 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 12:54:06 GMT]]></title><description><![CDATA[<p>ich habs ausprobiert bin ja nch dumm, aufjeden fall nich immer. es gib nur beides nich. mit exe un ohne auch nicht. deswegen wollte ich nochmal nachfragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123751</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123751</guid><dc:creator><![CDATA[FreeeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 12:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage on Thu, 24 Aug 2006 13:05:36 GMT]]></title><description><![CDATA[<p>ok weiß jetzt wie es geht. danke für die hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123768</guid><dc:creator><![CDATA[FreeeeezY]]></dc:creator><pubDate>Thu, 24 Aug 2006 13:05:36 GMT</pubDate></item></channel></rss>