<?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[Fehler mit getline]]></title><description><![CDATA[<p>Hallo,<br />
es ist zwar kein Fehler, aber das Programm funktioniert halt nicht so wie ich<br />
will:</p>
<pre><code class="language-cpp">int bla;
cin&gt;&gt;bla;

string str;
getline(cin,str);
</code></pre>
<p>Durch die Eingabe davor wird das getline einfach übergangen.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/205195/fehler-mit-getline</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 23:44:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205195.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Feb 2008 16:12:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler mit getline on Mon, 11 Feb 2008 16:12:50 GMT]]></title><description><![CDATA[<p>Hallo,<br />
es ist zwar kein Fehler, aber das Programm funktioniert halt nicht so wie ich<br />
will:</p>
<pre><code class="language-cpp">int bla;
cin&gt;&gt;bla;

string str;
getline(cin,str);
</code></pre>
<p>Durch die Eingabe davor wird das getline einfach übergangen.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1453773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1453773</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Mon, 11 Feb 2008 16:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit getline on Mon, 11 Feb 2008 16:25:34 GMT]]></title><description><![CDATA[<p>hmm versuch mal statt getline() den cin.getline zu verwenden, und sonst machst du es schlampigerweise so:</p>
<pre><code class="language-cpp">int bla;
cin&gt;&gt;bla;

string str;
getline(cin,str); //dies zum Buffer &quot;leeren&quot;
getline(cin,str); //sollte dann funktionieren
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1453784</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1453784</guid><dc:creator><![CDATA[XaTrIxX]]></dc:creator><pubDate>Mon, 11 Feb 2008 16:25:34 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler mit getline on Mon, 11 Feb 2008 17:35:09 GMT]]></title><description><![CDATA[<p>nach der eingabe über operator&gt;&gt; ist noch ein newline im buffer. den ignorieren:</p>
<pre><code class="language-cpp">cin &gt;&gt; bla;
cin.ignore();

getline(cin, str);
</code></pre>
<p><code>cin.getline</code> ist dem nicht vorzuziehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1453846</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1453846</guid><dc:creator><![CDATA[queer_boy]]></dc:creator><pubDate>Mon, 11 Feb 2008 17:35:09 GMT</pubDate></item></channel></rss>