<?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[code falsch oder visual studio kaputt]]></title><description><![CDATA[<p>Hallo, hier ist ein Auszug aus einem Beispielcode, der von VS bemängelt wird und ich weiß nicht wieso. Ich hab dieses Beispielprojekt vor Monatn geschrieben und es lief immer, auf einmal kommen Fehler die ich mir nicht erklären kann. Ich bin noch anfänger.</p>
<pre><code>//Vorlage zum Zerteilen des Strings
	vector&lt;string&gt; split(const string &amp;s, char delim) {
		vector&lt;string&gt; elems;
		stringstream ss(s);
		string item;
		while (getline(ss, item, delim)) {
			elems.push_back(item);
		}
		return elems;
	}
</code></pre>
<p>Dieser simple Abschnitt verursacht zig Fehler und ich bin überzeugt dass ich nix verändert hab im Gegensatz zu früher als es noch lief. Woran liegt es, ist der Code falsch oder mein VS kaputt?? Die Fehlermeldungen:<br />
Severity Code Description Project File Line Column Source<br />
Error C2784 &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem)&quot;: template-Argument für &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;&quot; konnte nicht von &quot;int&quot; hergeleitet werden. The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C1903 Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen. The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C2780 'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)': Erwartet 2 Argumente - 3 unterstützt The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C2780 'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)': Erwartet 2 Argumente - 3 unterstützt The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C2079 'ss' verwendet undefiniertes class 'std::basic_stringstream&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;' The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 14 1 Build<br />
Error C2440 'Initialisierung': 'const std::string' kann nicht in 'int' konvertiert werden The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 14 1 Build<br />
Error C2784 &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem)&quot;: template-Argument für &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;&quot; konnte nicht von &quot;int&quot; hergeleitet werden. The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Danke im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/339334/code-falsch-oder-visual-studio-kaputt</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 05:56:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/339334.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Aug 2016 12:39:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to code falsch oder visual studio kaputt on Sun, 21 Aug 2016 12:39:13 GMT]]></title><description><![CDATA[<p>Hallo, hier ist ein Auszug aus einem Beispielcode, der von VS bemängelt wird und ich weiß nicht wieso. Ich hab dieses Beispielprojekt vor Monatn geschrieben und es lief immer, auf einmal kommen Fehler die ich mir nicht erklären kann. Ich bin noch anfänger.</p>
<pre><code>//Vorlage zum Zerteilen des Strings
	vector&lt;string&gt; split(const string &amp;s, char delim) {
		vector&lt;string&gt; elems;
		stringstream ss(s);
		string item;
		while (getline(ss, item, delim)) {
			elems.push_back(item);
		}
		return elems;
	}
</code></pre>
<p>Dieser simple Abschnitt verursacht zig Fehler und ich bin überzeugt dass ich nix verändert hab im Gegensatz zu früher als es noch lief. Woran liegt es, ist der Code falsch oder mein VS kaputt?? Die Fehlermeldungen:<br />
Severity Code Description Project File Line Column Source<br />
Error C2784 &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem)&quot;: template-Argument für &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;&quot; konnte nicht von &quot;int&quot; hergeleitet werden. The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C1903 Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen. The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C2780 'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)': Erwartet 2 Argumente - 3 unterstützt The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C2780 'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;&amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)': Erwartet 2 Argumente - 3 unterstützt The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Error C2079 'ss' verwendet undefiniertes class 'std::basic_stringstream&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;' The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 14 1 Build<br />
Error C2440 'Initialisierung': 'const std::string' kann nicht in 'int' konvertiert werden The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 14 1 Build<br />
Error C2784 &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::getline(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem)&quot;: template-Argument für &quot;std::basic_istream&lt;_Elem,_Traits&gt; &amp;&quot; konnte nicht von &quot;int&quot; hergeleitet werden. The_Iron_price d:\p2016\the_iron_price\the_iron_price\csvio.h 16 1 Build<br />
Danke im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2506109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2506109</guid><dc:creator><![CDATA[bengal122]]></dc:creator><pubDate>Sun, 21 Aug 2016 12:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to code falsch oder visual studio kaputt on Sun, 21 Aug 2016 13:51:10 GMT]]></title><description><![CDATA[<p>Bitte vollständiges Minimalbeispiel, das - bis auf den Fehler - compilierbar ist.</p>
<p>Sind alle nötigen Header eingebunden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2506118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2506118</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 21 Aug 2016 13:51:10 GMT</pubDate></item><item><title><![CDATA[Reply to code falsch oder visual studio kaputt on Sun, 21 Aug 2016 14:41:50 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Sind alle nötigen Header eingebunden?</p>
</blockquote>
<p>.. wohl nicht. Es fehlt <code>#include &lt;string&gt;</code> und wahrscheinlich anschließend <code>#include &lt;sstream&gt;</code> . Letzterer inkludiert <code>&lt;string&gt;</code> beim VS.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2506124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2506124</guid><dc:creator><![CDATA[Werner Salomon]]></dc:creator><pubDate>Sun, 21 Aug 2016 14:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to code falsch oder visual studio kaputt on Sun, 21 Aug 2016 17:52:27 GMT]]></title><description><![CDATA[<p>Die Headerdatei sstream war nicht eingebunden. warum ich die entfernt hab weiß ich bis heut nicht. Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2506139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2506139</guid><dc:creator><![CDATA[bengal122]]></dc:creator><pubDate>Sun, 21 Aug 2016 17:52:27 GMT</pubDate></item></channel></rss>