<?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[Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST]]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin gerade dabei C++ zu lernen und versuche mich an ein paar Übungen, die ich im Netz gefunden habe. <a href="http://www.pellatz.de/downloads/c_aufgaben.pdf" rel="nofollow">http://www.pellatz.de/downloads/c_aufgaben.pdf</a></p>
<p>Ich bin gerade bei Aufgabe 2. Mein Code sieht wie folgt aus:</p>
<pre><code>#include &lt;iostream&gt;

using std::cout;
using std::cin;
using std::endl;

int main()

{

	char Name;
	char Konfession;
	short Alter;
	float Gehalt;

	cout &lt;&lt; &quot;Bitte geben Sie Ihren Namen ein!\n&quot;;
	cin &gt;&gt; Name;
	cout &lt;&lt; &quot;Bitte nennen Sie Ihre Konfession!\n&quot;;
	cin &gt;&gt; Konfession;
	cout &lt;&lt; &quot;Wie alt sind Sie?\n&quot;;
	cin &gt;&gt; Alter;
	cout &lt;&lt; &quot;Wie hoch ist ihr Gehalt (monatlich)?\n&quot;;
	cin &gt;&gt; Gehalt;

	cout &lt;&lt; &quot;Name: &quot; &lt;&lt; Name &lt;&lt; endl;
	cout &lt;&lt; &quot;Konfession: &quot; &lt;&lt; Konfession &lt;&lt; endl;
	cout &lt;&lt; &quot;Alter: &quot; &lt;&lt; Alter &lt;&lt; endl;
	cout &lt;&lt; &quot;Gehalt: &quot; &lt;&lt; Gehalt &lt;&lt; endl;

	std::cin.get();
}
</code></pre>
<p>Nach der Eingabe des Namens schließt das Programm leider sofort.</p>
<p>Grüße</p>
<p>Jan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/320579/einfache-ein-ausgabe-programm-schließt-zu-früh-gelöst</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 15:31:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/320579.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Oct 2013 02:48:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 19:30:57 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin gerade dabei C++ zu lernen und versuche mich an ein paar Übungen, die ich im Netz gefunden habe. <a href="http://www.pellatz.de/downloads/c_aufgaben.pdf" rel="nofollow">http://www.pellatz.de/downloads/c_aufgaben.pdf</a></p>
<p>Ich bin gerade bei Aufgabe 2. Mein Code sieht wie folgt aus:</p>
<pre><code>#include &lt;iostream&gt;

using std::cout;
using std::cin;
using std::endl;

int main()

{

	char Name;
	char Konfession;
	short Alter;
	float Gehalt;

	cout &lt;&lt; &quot;Bitte geben Sie Ihren Namen ein!\n&quot;;
	cin &gt;&gt; Name;
	cout &lt;&lt; &quot;Bitte nennen Sie Ihre Konfession!\n&quot;;
	cin &gt;&gt; Konfession;
	cout &lt;&lt; &quot;Wie alt sind Sie?\n&quot;;
	cin &gt;&gt; Alter;
	cout &lt;&lt; &quot;Wie hoch ist ihr Gehalt (monatlich)?\n&quot;;
	cin &gt;&gt; Gehalt;

	cout &lt;&lt; &quot;Name: &quot; &lt;&lt; Name &lt;&lt; endl;
	cout &lt;&lt; &quot;Konfession: &quot; &lt;&lt; Konfession &lt;&lt; endl;
	cout &lt;&lt; &quot;Alter: &quot; &lt;&lt; Alter &lt;&lt; endl;
	cout &lt;&lt; &quot;Gehalt: &quot; &lt;&lt; Gehalt &lt;&lt; endl;

	std::cin.get();
}
</code></pre>
<p>Nach der Eingabe des Namens schließt das Programm leider sofort.</p>
<p>Grüße</p>
<p>Jan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357677</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Sun, 06 Oct 2013 19:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Fri, 04 Oct 2013 04:07:53 GMT]]></title><description><![CDATA[<p>zweimal std::cin.get(); machen. Denn nach der zuletzt eingegebenen Zahl ist noch das '\n' im cin. Das erst weglesen.</p>
<p>Aber besser, stattdessen gar nicht machen. Deine IDE hat gefälligst was zu bieten, daß man diesen Quark nicht braucht. Beim Microsoft-Compiler zum Beispiel startet man das Konsolen-Programm mit Strg+F5 statt mit F5 und es bleibt offen.</p>
<p>Name und Konfession fassen bei Dir nur einen Buchstaben. Kann ich bei Konfessionen fast einsehen, soll man den wichtigsten 61 davon einen Buchstaben oder eine Ziffer verpassen. Bei Namen wird es aber unpraktisch.</p>
<p>Falls Du Prorammieren lernen willst, und nicht nur diesen Informatikkurs überleben, dann besorge Dir ein gutes Buch und lerne daraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357678</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 04 Oct 2013 04:07:53 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Fri, 04 Oct 2013 05:07:29 GMT]]></title><description><![CDATA[<p>Du scheinst meine Problembeschreibung nicht richtig verstanden oder zumindest nicht richtig gelesen zu haben! Dein Lösungen funktionieren auch nicht. Naja is ja noch früh nä...</p>
<p>Trotzdem danke für den Tipp, dass Name und Konfession nur einen Buchstaben fassen!<br />
Ich drücke übrigens IMMER Strg+F5. Das macht überhaupt keinen Unterschied. Deswegen muss ich am Ende jedes Programmes cin.get() einfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357679</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Fri, 04 Oct 2013 05:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Fri, 04 Oct 2013 05:20:47 GMT]]></title><description><![CDATA[<p>Probier <code>cin.clear()</code> und/oder <code>cin.ignore()</code> nach jedem <code>cin &gt;&gt;</code> einzufügen.<br />
Damit hat es bei mir mal funktioniert.<br />
Irgendwie dürfte das den Buffer löschen oder so.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357680</guid><dc:creator><![CDATA[phanzy]]></dc:creator><pubDate>Fri, 04 Oct 2013 05:20:47 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Fri, 04 Oct 2013 05:25:25 GMT]]></title><description><![CDATA[<p>gunjah schrieb:</p>
<blockquote>
<p>Nach der Eingabe des Namens schließt das Programm leider sofort.</p>
</blockquote>
<p>Starte Dein Programm aus einer Konsole.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357681</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357681</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Fri, 04 Oct 2013 05:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Fri, 04 Oct 2013 05:29:34 GMT]]></title><description><![CDATA[<p>gunjah schrieb:</p>
<blockquote>
<p>Du scheinst meine Problembeschreibung nicht richtig verstanden oder zumindest nicht richtig gelesen zu haben! Dein Lösungen funktionieren auch nicht. Naja is ja noch früh nä...</p>
<p>Trotzdem danke für den Tipp, dass Name und Konfession nur einen Buchstaben fassen!<br />
Ich drücke übrigens IMMER Strg+F5. Das macht überhaupt keinen Unterschied. Deswegen muss ich am Ende jedes Programmes cin.get() einfügen.</p>
</blockquote>
<p>Hilf Dir doch selber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357682</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 04 Oct 2013 05:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Fri, 04 Oct 2013 05:45:11 GMT]]></title><description><![CDATA[<p>offensictlich ist dein Problm, dass du einen Namen eingibst aber nur ein zeichen ließt. Ich werde dir nicht erzählen warum, weil deine Antwort auf Volkards Hilfe so kacke war.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2357687</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2357687</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Fri, 04 Oct 2013 05:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 18:00:05 GMT]]></title><description><![CDATA[<p>Ich habe die Antwort so geschrieben, weil er anstatt mir zu helfen lieber meine Art zu lernen kritisierte. Wenn ich über meine Lernmethodik reden wollte, würde ich dafür einen extra Thread machen. Wenn er wirklich sone Möse ist, dass er jetzt beleidigt ist, habe ich alles richtig gemacht! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> Ich hab diese Haltung von Klugscheißern in Foren einfach satt, die sich selbst als allwissend darstellen und denn nicht mal funktionierende Lösungen anzubieten haben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358361</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Sun, 06 Oct 2013 18:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 18:06:37 GMT]]></title><description><![CDATA[<p>gunjah schrieb:</p>
<blockquote>
<p>Ich habe die Antwort so geschrieben, weil er anstatt mir zu helfen lieber meine Art zu lernen kritisierte. Wenn ich über meine Lernmethodik reden wollte, würde ich dafür einen extra Thread machen. Wenn er wirklich sone Möse ist, dass er jetzt beleidigt ist, habe ich alles richtig gemacht! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> Ich hab diese Haltung von Klugscheißern in Foren einfach satt, die sich selbst als allwissend darstellen und denn nicht mal funktionierende Lösungen anzubieten haben.</p>
</blockquote>
<p>Für zukünftige Fragen: Hilf Dir doch selber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358363</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Sun, 06 Oct 2013 18:06:37 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 18:25:50 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>offensictlich ist dein Problm, dass du einen Namen eingibst aber nur ein zeichen ließt. Ich werde dir nicht erzählen warum, weil deine Antwort auf Volkards Hilfe so kacke war.</p>
</blockquote>
<p>Dann mache ich es mal, weil ich so verzweifet bin:</p>
<p><code>std::cin</code> hält intern einen Buffer, der jedes eingegebene Zeichen enthält. Dieser Buffer ist vorerst leer. Sobald du aber eine Funktion aufrufst, die Zeichen braucht, der Buffer aber leer ist, wird also auf Eingabe gewartet. Jedes eingegebene Zeichen wird dann in den Buffer kopiert. Sobald der Stream ein Zeichen extrahiert, wird die Buffer-Position erhöht. Kommt man wieder am Ende an wird er geleert und es wird wiederum auf Eingabe gewartet.</p>
<p><code>std::cin.get()</code> bringt also nur etwas, wenn man am Ende des Buffers ist und dieser keine Zeichen enthält. Du gibst aber einen String ein, und es wird nur ein Zeichen extrahiert - der Rest deines Namens hängt also noch im Buffer. Daher wird das Einlesen der Konfession auch &quot;übersprungen&quot; - es wird nämlich einfach das nächste Zeichen im Buffer gelesen und dann weitergemacht, ohne auf Eingabe zu warten.</p>
<p>Jedoch liegt das Problem bei dir an anderer Stelle. Du solltest einen String einlesen:</p>
<pre><code>int main()

{

    std::string Name, Konfession;
    short Alter;
    float Gehalt;

    cout &lt;&lt; &quot;Bitte geben Sie Ihren Namen ein!\n&quot;;
    std::getline( cin, Name ); // Liest eine Zeile ein
    cout &lt;&lt; &quot;Bitte nennen Sie Ihre Konfession!\n&quot;;
    cin &gt;&gt; Konfession;
    cout &lt;&lt; &quot;Wie alt sind Sie?\n&quot;;
    cin &gt;&gt; Alter;
    cout &lt;&lt; &quot;Wie hoch ist ihr Gehalt (monatlich)?\n&quot;;
    cin &gt;&gt; Gehalt;

    cout &lt;&lt; &quot;Name: &quot; &lt;&lt; Name &lt;&lt; endl;
    cout &lt;&lt; &quot;Konfession: &quot; &lt;&lt; Konfession &lt;&lt; endl;
    cout &lt;&lt; &quot;Alter: &quot; &lt;&lt; Alter &lt;&lt; endl;
    cout &lt;&lt; &quot;Gehalt: &quot; &lt;&lt; Gehalt &lt;&lt; endl;

    std::cin.get(); // Sollte nun blockieren
}
</code></pre>
<p>(Ungetestet)</p>
<p>Bitte auch <a href="http://www.c-plusplus.net/forum/111042" rel="nofollow">Automatisches Schließen verhindern</a> beachten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358371</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 06 Oct 2013 18:25:50 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 18:27:30 GMT]]></title><description><![CDATA[<p>Welche IDE hast du denn? Man findet bestimmt was wenn man nach dem Namen + keep console open oder so sucht. Ansonsten ist bei <a href="http://www.c-plusplus.net/forum/111042" rel="nofollow">diesem Thread</a> sicher was dabei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358374</guid><dc:creator><![CDATA[nwp3]]></dc:creator><pubDate>Sun, 06 Oct 2013 18:27:30 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 19:27:58 GMT]]></title><description><![CDATA[<p>Ich habe mich mit Strings noch nicht auseinandergesetzt, weil ich noch nicht so weit bin. Ich habe jetzt den Teil über cin noch mal gründlich gelesen und die Zeichenanzahl bei der Definition auf 20 gesetzt. Für den Namen habe ich dann cin.getline() verwendet, da ein Leerzeichen dabei wäre, falls man Vor- und Nachnamen eingibt. Es läuft jetzt alles und die Anforderungen der Übung sind erfüllt.</p>
<p>Es muss übrigens zwei mal std::cin.get() am Ende eingefügt werden. Grüße gehen somit raus an volkard! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>@*: Bei deiner Version mit den Strings kommt eine lange Errorliste heraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358416</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Sun, 06 Oct 2013 19:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 19:30:02 GMT]]></title><description><![CDATA[<p>Ich benutze gerade MS Visual C++, ich werde jedoch früher oder später auf eine Linuxumgebung umsteigen, weil Linux einfach geiler is und ich diese Eyecandyscheiße bei Windows echt nicht brauche! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358417</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Sun, 06 Oct 2013 19:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 19:40:04 GMT]]></title><description><![CDATA[<blockquote>
<p>Bei deiner Version mit den Strings kommt eine lange Errorliste heraus.</p>
</blockquote>
<p>Wäre nicht verkehrt, die zu posten, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358423</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 06 Oct 2013 19:40:04 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 20:59:55 GMT]]></title><description><![CDATA[<p>wie gesagt, die ist ziemlich lang. wie hieß noch die seite auf der man codes hochladen kann?</p>
<pre><code>1&gt;------ Build started: Project: Project5, Configuration: Debug Win32 ------
1&gt;  Source.cpp
1&gt;c:\users\jan\documents\visual studio 2012\projects\project5\project5\source.cpp(16): error C2664: 'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::getline(_Elem *,std::streamsize)' : cannot convert parameter 1 from 'std::string' to 'char *'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1&gt;c:\users\jan\documents\visual studio 2012\projects\project5\project5\source.cpp(18): error C2679: binary '&gt;&gt;' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(1053): could be 'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::operator &gt;&gt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,signed char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(1060): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::operator &gt;&gt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,signed char &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(1067): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::operator &gt;&gt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,unsigned char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(1074): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::operator &gt;&gt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,unsigned char &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(1084): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::operator &gt;&gt;&lt;char,std::char_traits&lt;char&gt;,std::string&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;,_Ty &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;,
1&gt;              _Ty=std::string
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(193): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;(__cdecl *)(std::basic_istream&lt;_Elem,_Traits&gt; &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(199): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(std::basic_ios&lt;_Elem,_Traits&gt; &amp;(__cdecl *)(std::basic_ios&lt;_Elem,_Traits&gt; &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(206): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(std::ios_base &amp;(__cdecl *)(std::ios_base &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(213): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(std::_Bool &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(232): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(short &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(267): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(unsigned short &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(286): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(int &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(312): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(unsigned int &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(330): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(long &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(348): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(unsigned long &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(368): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(__int64 &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(387): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(unsigned __int64 &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(406): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(float &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(425): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(double &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(443): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(long double &amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(461): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(void *&amp;)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\istream(480): or       'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::operator &gt;&gt;(std::basic_streambuf&lt;_Elem,_Traits&gt; *)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          while trying to match the argument list '(std::istream, std::string)'
1&gt;c:\users\jan\documents\visual studio 2012\projects\project5\project5\source.cpp(24): error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(695): could be 'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(742): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(780): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(827): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(953): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const signed char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(960): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,signed char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(967): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const unsigned char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(974): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,unsigned char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(984): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;,std::string&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;&amp;,const _Ty &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;,
1&gt;              _Ty=std::string
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(1101): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const std::error_code &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(201): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;(__cdecl *)(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(207): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::basic_ios&lt;_Elem,_Traits&gt; &amp;(__cdecl *)(std::basic_ios&lt;_Elem,_Traits&gt; &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(214): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::ios_base &amp;(__cdecl *)(std::ios_base &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(221): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::_Bool)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(241): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(short)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(275): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned short)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(295): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(int)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(320): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned int)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(340): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(long)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(360): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned long)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(381): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(__int64)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(401): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned __int64)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(422): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(float)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(442): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(double)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(462): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(long double)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(482): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(const void *)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(502): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::basic_streambuf&lt;_Elem,_Traits&gt; *)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          while trying to match the argument list '(std::basic_ostream&lt;_Elem,_Traits&gt;, std::string)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;c:\users\jan\documents\visual studio 2012\projects\project5\project5\source.cpp(25): error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(695): could be 'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(742): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(780): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(827): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(953): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const signed char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(960): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,signed char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(967): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const unsigned char *)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(974): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,unsigned char)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(984): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;,std::string&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;&amp;,const _Ty &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;,
1&gt;              _Ty=std::string
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(1101): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const std::error_code &amp;)' [found using argument-dependent lookup]
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(201): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;(__cdecl *)(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(207): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::basic_ios&lt;_Elem,_Traits&gt; &amp;(__cdecl *)(std::basic_ios&lt;_Elem,_Traits&gt; &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(214): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::ios_base &amp;(__cdecl *)(std::ios_base &amp;))'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(221): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::_Bool)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(241): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(short)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(275): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned short)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(295): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(int)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(320): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned int)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(340): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(long)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(360): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned long)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(381): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(__int64)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(401): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(unsigned __int64)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(422): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(float)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(442): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(double)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(462): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(long double)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(482): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(const void *)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 11.0\vc\include\ostream(502): or       'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;std::basic_ostream&lt;_Elem,_Traits&gt;::operator &lt;&lt;(std::basic_streambuf&lt;_Elem,_Traits&gt; *)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
1&gt;          while trying to match the argument list '(std::basic_ostream&lt;_Elem,_Traits&gt;, std::string)'
1&gt;          with
1&gt;          [
1&gt;              _Elem=char,
1&gt;              _Traits=std::char_traits&lt;char&gt;
1&gt;          ]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2358447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358447</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Sun, 06 Oct 2013 20:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Sun, 06 Oct 2013 23:23:32 GMT]]></title><description><![CDATA[<p>Die Seite heißt <a href="http://codepad.org" rel="nofollow">codepad.org</a> (oder auch <a href="http://ideone.com" rel="nofollow">ideone.com</a>).</p>
<p>Und jetzt ändere bitte deinen Code zu meinem, sonst wird das nicht kompilieren.</p>
<p>Edit:<br />
(Du nutzt <code>istream::getline</code> anstelle von <code>std::getline</code> . Wie gesagt: Du hättest direkt meinen Code nehmen sollen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358449</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 06 Oct 2013 23:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Mon, 07 Oct 2013 07:05:16 GMT]]></title><description><![CDATA[<p>gunjah schrieb:</p>
<blockquote>
<p>Ich hab diese Haltung von Klugscheißern in Foren einfach satt, die sich selbst als allwissend darstellen und denn nicht mal funktionierende Lösungen anzubieten haben.</p>
</blockquote>
<p>Ach so läuft der Hase -&gt; Hilf dir doch selber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358479</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 07 Oct 2013 07:05:16 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Mon, 07 Oct 2013 18:40:12 GMT]]></title><description><![CDATA[<p>Ich nutze kein istream::getline. Aber es funktioniert ja schon, also egal! Danke für die Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358696</guid><dc:creator><![CDATA[gunjah]]></dc:creator><pubDate>Mon, 07 Oct 2013 18:40:12 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Mon, 07 Oct 2013 18:49:29 GMT]]></title><description><![CDATA[<p>gunjah schrieb:</p>
<blockquote>
<p>Ich nutze kein istream::getline.</p>
</blockquote>
<p>Ist das so?</p>
<p>Fehlermeldung schrieb:</p>
<blockquote>
<p>'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::getline(_Elem *,std::streamsize)'</p>
</blockquote>
<p>Das ist die Funktion die du aufrufen wolltest. Kurz: <code>istream::getline</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2358701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358701</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Mon, 07 Oct 2013 18:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to Einfache Ein-Ausgabe: Programm schließt zu früh [GELÖST] on Mon, 07 Oct 2013 19:16:10 GMT]]></title><description><![CDATA[<ul>
<li>schrieb:</li>
</ul>
<blockquote>
<p>gunjah schrieb:</p>
<blockquote>
<p>Ich nutze kein istream::getline.</p>
</blockquote>
<p>Ist das so?</p>
<p>Fehlermeldung schrieb:</p>
<blockquote>
<p>'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::basic_istream&lt;_Elem,_Traits&gt;::getline(_Elem *,std::streamsize)'</p>
</blockquote>
<p>Das ist die Funktion die du aufrufen wolltest. Kurz: <code>istream::getline</code> .</p>
</blockquote>
<p>Verumtlich nutzt du sie als <em>std::cin.getline()</em>.<br />
Hach, welchen aha-Effekt ich hatte, als ich gemerkt habe dass cin und cout Objekte sind.<br />
Dieses Erlebnis hätte ich gerne noch einmal. <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/2358718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2358718</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Mon, 07 Oct 2013 19:16:10 GMT</pubDate></item></channel></rss>