<?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[kleines Iterator-Problem]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich bin bei meiner Printfunktion auf ein seltsames Assertion-Fail-Problem gestoßen, dass ich bis jetzt nicht lösen konnte!<br />
Kann mir jemand von euch erklären, wie dieser Fehler Zusatnde kommt?<br />
Ich kann auch auf einmal kein Iter++ mehr machen...</p>
<pre><code class="language-cpp">//---------------------------------------------
// Class CardReader
//---------------------------------------------
class CardReader{

public:
	CardReader();
	~CardReader();

	typedef std::vector&lt;CardInformation&gt; CardVector;
	typedef CardVector::iterator CardIterator;

	CardVector GetVector() const;
	CardIterator GetIterator() const;

	void PushVector(CardInformation const &amp; CI);
	void ClearVector();

	void Print(std::ostream &amp; ost) const;

	// all public information

private:
	// all private information
	CardVector Vect;
	CardIterator Iter;
};

//---------------------------------------------
// Klasseninterne Funktionen
//---------------------------------------------
CardReader::CardReader(): Iter(Vect.begin()) {}
CardReader::~CardReader() {}

CardReader::CardVector CardReader::GetVector() const {return Vect;}
CardReader::CardIterator CardReader::GetIterator() const {return Iter;}

void CardReader::PushVector(CardInformation const &amp; CI) {Vect.push_back(CI);}
void CardReader::ClearVector() {Vect.clear();}

void CardReader::Print(std::ostream &amp; ost) const {		// Zugriff auf PrivateMember funktioniert nicht (Iterator-Fehler)

	size_t counter = 1;

	ost &lt;&lt; &quot;--------------------[Print: Vector]--------------------&quot; &lt;&lt; endl;

	for (Iter; Iter != Vect.end(); Iter) {
		ost &lt;&lt; &quot;Karte aus VektorPosition  &quot; &lt;&lt; counter &lt;&lt; endl;

		ost &lt;&lt; cPictureLink &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;PictureLink &lt;&lt; endl;
		ost &lt;&lt; cCardName    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;CardName    &lt;&lt; endl;
		ost &lt;&lt; cEdition     &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Edition     &lt;&lt; endl;
		ost &lt;&lt; cRareness    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Rareness    &lt;&lt; endl;
		ost &lt;&lt; cColour      &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Colour      &lt;&lt; endl;
		ost &lt;&lt; cManaCosts   &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;ManaCosts   &lt;&lt; endl;
		ost &lt;&lt; cCardType    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;CardType    &lt;&lt; endl;
		ost &lt;&lt; cPrice       &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Price       &lt;&lt; endl;
		ost &lt;&lt; cTournaments &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Tournaments &lt;&lt; endl;
		ost &lt;&lt; cCardText    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;CardText    &lt;&lt; endl;
		counter++;
	}
	ost &lt;&lt; &quot;--------------------[Print: End]--------------------&quot; &lt;&lt; endl;
}
</code></pre>
<pre><code class="language-cpp">//---------------------------------------------
// Typedefs, Structs
//---------------------------------------------
std::string static const cPictureLink = &quot;PictureLink&quot;;	
std::string static const cCardName = &quot;CardName&quot;;		
std::string static const cEdition = &quot;Edition&quot;;		
std::string static const cRareness = &quot;Rareness&quot;;		
std::string static const cColour = &quot;Colour&quot;;			
std::string static const cManaCosts = &quot;ManaCosts&quot;;		
std::string static const cCardType = &quot;CardType&quot;;		
std::string static const cPrice = &quot;Price&quot;;		
std::string static const cTournaments = &quot;Tournaments&quot;;
std::string static const cCardText = &quot;CardText&quot;;

struct CardInformation{
	std::string PictureLink;
	std::string CardName;
	std::string Edition;
	std::string Rareness;
	std::string Colour;
	std::string ManaCosts;
	std::string CardType;
	std::string Tournaments;
	std::string CardText;
	double Price;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/306451/kleines-iterator-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 08:14:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/306451.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Jul 2012 12:57:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 12:57:37 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich bin bei meiner Printfunktion auf ein seltsames Assertion-Fail-Problem gestoßen, dass ich bis jetzt nicht lösen konnte!<br />
Kann mir jemand von euch erklären, wie dieser Fehler Zusatnde kommt?<br />
Ich kann auch auf einmal kein Iter++ mehr machen...</p>
<pre><code class="language-cpp">//---------------------------------------------
// Class CardReader
//---------------------------------------------
class CardReader{

public:
	CardReader();
	~CardReader();

	typedef std::vector&lt;CardInformation&gt; CardVector;
	typedef CardVector::iterator CardIterator;

	CardVector GetVector() const;
	CardIterator GetIterator() const;

	void PushVector(CardInformation const &amp; CI);
	void ClearVector();

	void Print(std::ostream &amp; ost) const;

	// all public information

private:
	// all private information
	CardVector Vect;
	CardIterator Iter;
};

//---------------------------------------------
// Klasseninterne Funktionen
//---------------------------------------------
CardReader::CardReader(): Iter(Vect.begin()) {}
CardReader::~CardReader() {}

CardReader::CardVector CardReader::GetVector() const {return Vect;}
CardReader::CardIterator CardReader::GetIterator() const {return Iter;}

void CardReader::PushVector(CardInformation const &amp; CI) {Vect.push_back(CI);}
void CardReader::ClearVector() {Vect.clear();}

void CardReader::Print(std::ostream &amp; ost) const {		// Zugriff auf PrivateMember funktioniert nicht (Iterator-Fehler)

	size_t counter = 1;

	ost &lt;&lt; &quot;--------------------[Print: Vector]--------------------&quot; &lt;&lt; endl;

	for (Iter; Iter != Vect.end(); Iter) {
		ost &lt;&lt; &quot;Karte aus VektorPosition  &quot; &lt;&lt; counter &lt;&lt; endl;

		ost &lt;&lt; cPictureLink &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;PictureLink &lt;&lt; endl;
		ost &lt;&lt; cCardName    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;CardName    &lt;&lt; endl;
		ost &lt;&lt; cEdition     &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Edition     &lt;&lt; endl;
		ost &lt;&lt; cRareness    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Rareness    &lt;&lt; endl;
		ost &lt;&lt; cColour      &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Colour      &lt;&lt; endl;
		ost &lt;&lt; cManaCosts   &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;ManaCosts   &lt;&lt; endl;
		ost &lt;&lt; cCardType    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;CardType    &lt;&lt; endl;
		ost &lt;&lt; cPrice       &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Price       &lt;&lt; endl;
		ost &lt;&lt; cTournaments &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;Tournaments &lt;&lt; endl;
		ost &lt;&lt; cCardText    &lt;&lt; &quot;    &quot; &lt;&lt; Iter-&gt;CardText    &lt;&lt; endl;
		counter++;
	}
	ost &lt;&lt; &quot;--------------------[Print: End]--------------------&quot; &lt;&lt; endl;
}
</code></pre>
<pre><code class="language-cpp">//---------------------------------------------
// Typedefs, Structs
//---------------------------------------------
std::string static const cPictureLink = &quot;PictureLink&quot;;	
std::string static const cCardName = &quot;CardName&quot;;		
std::string static const cEdition = &quot;Edition&quot;;		
std::string static const cRareness = &quot;Rareness&quot;;		
std::string static const cColour = &quot;Colour&quot;;			
std::string static const cManaCosts = &quot;ManaCosts&quot;;		
std::string static const cCardType = &quot;CardType&quot;;		
std::string static const cPrice = &quot;Price&quot;;		
std::string static const cTournaments = &quot;Tournaments&quot;;
std::string static const cCardText = &quot;CardText&quot;;

struct CardInformation{
	std::string PictureLink;
	std::string CardName;
	std::string Edition;
	std::string Rareness;
	std::string Colour;
	std::string ManaCosts;
	std::string CardType;
	std::string Tournaments;
	std::string CardText;
	double Price;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2236605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236605</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 12:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:01:13 GMT]]></title><description><![CDATA[<p>Verwendete Includes</p>
<pre><code class="language-cpp">#include &lt;fstream&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &lt;iterator&gt;
</code></pre>
<p>Fehlermeldung:<br />
Expression: vector Iterators incompatible</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236607</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:01:13 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:06:38 GMT]]></title><description><![CDATA[<p>Was ist CardVector und CardIterator? Es liegt ja offensichtlich an diesen Klassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236609</guid><dc:creator><![CDATA[IrgendeinName]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:06:38 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:10:31 GMT]]></title><description><![CDATA[<p>Screib einmal in der loop</p>
<pre><code class="language-cpp">Iter = Vect.begin()
</code></pre>
<p>Statt</p>
<pre><code class="language-cpp">Iter;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2236610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236610</guid><dc:creator><![CDATA[IrgendeinName]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:12:49 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>leider geht das scheinbar nicht kein Ahnung warum aber er kennt hier den zuweisungsoperator einfach nicht! ebenso wie er den inkrementoperator nicht kennt!</p>
<pre><code class="language-cpp">for (Iter = Vect.begin(); Iter != Vect.end(); Iter++) 
{ 
// ... 
}
</code></pre>
<p>Hier kennt er weder den ++ - Operator noch den = - Operator....sehr setlsam ich glaube ich hab das schon gut 100mal so gemacht und hatte noch nie probs damit oO</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236612</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:13:36 GMT]]></title><description><![CDATA[<p>Du brauchst einen const_iterator.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236613</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:13:36 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:14:42 GMT]]></title><description><![CDATA[<p>IrgendeinName schrieb:</p>
<blockquote>
<p>Was ist CardVector und CardIterator? Es liegt ja offensichtlich an diesen Klassen.</p>
</blockquote>
<p>der typedef dafür steht in der Klasse im public teil!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236614</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:14:42 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:17:20 GMT]]></title><description><![CDATA[<p>Kellerautomat schrieb:</p>
<blockquote>
<p>Du brauchst einen const_iterator.</p>
</blockquote>
<p>ändert leider auch nichts daran, dass die beiden operatoren nicht erkannt werden, aber danke für den Hinweis</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236615</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:17:20 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:21:22 GMT]]></title><description><![CDATA[<p>Zeig doch mal Fehlermeldungen, dann kann man dir besser helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236617</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:21:45 GMT]]></title><description><![CDATA[<p>Ratatosky schrieb:</p>
<blockquote>
<p>Hallo</p>
<p>leider geht das scheinbar nicht kein Ahnung warum aber er kennt hier den zuweisungsoperator einfach nicht! ebenso wie er den inkrementoperator nicht kennt!</p>
<pre><code class="language-cpp">for (Iter = Vect.begin(); Iter != Vect.end(); Iter++) 
{ 
// ... 
}
</code></pre>
<p>Hier kennt er weder den ++ - Operator noch den = - Operator....sehr setlsam ich glaube ich hab das schon gut 100mal so gemacht und hatte noch nie probs damit oO</p>
</blockquote>
<p>Wo stehen die includes?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236618</guid><dc:creator><![CDATA[IrgendeinName]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:21:45 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:22:53 GMT]]></title><description><![CDATA[<p>Kellerautomat schrieb:</p>
<blockquote>
<p>Zeig doch mal Fehlermeldungen, dann kann man dir besser helfen.</p>
</blockquote>
<p>Kein &quot;=&quot;-Operator stimmt mit diesen Operanden überein.<br />
Kein &quot;++&quot;-Operator stimmt mit diesen Operanden überein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236619</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:24:51 GMT]]></title><description><![CDATA[<p>IrgendeinName schrieb:</p>
<blockquote>
<p>Ratatosky schrieb:</p>
<blockquote>
<p>Hallo</p>
<p>leider geht das scheinbar nicht kein Ahnung warum aber er kennt hier den zuweisungsoperator einfach nicht! ebenso wie er den inkrementoperator nicht kennt!</p>
<pre><code class="language-cpp">for (Iter = Vect.begin(); Iter != Vect.end(); Iter++) 
{ 
// ... 
}
</code></pre>
<p>Hier kennt er weder den ++ - Operator noch den = - Operator....sehr setlsam ich glaube ich hab das schon gut 100mal so gemacht und hatte noch nie probs damit oO</p>
</blockquote>
<p>Wo stehen die includes?</p>
</blockquote>
<p>Sowohl im header als auch im Cpp file atm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236622</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:28:30 GMT]]></title><description><![CDATA[<p>Ratatosky schrieb:</p>
<blockquote>
<p>Kellerautomat schrieb:</p>
<blockquote>
<p>Zeig doch mal Fehlermeldungen, dann kann man dir besser helfen.</p>
</blockquote>
<p>Kein &quot;=&quot;-Operator stimmt mit diesen Operanden überein.<br />
Kein &quot;++&quot;-Operator stimmt mit diesen Operanden überein.</p>
</blockquote>
<pre><code class="language-cpp">typedef std::vector&lt;CardInformation&gt; CardVector; 
    typedef CardVector::iterator CardIterator;
</code></pre>
<p>Schreib mal statt Zeile 2</p>
<pre><code class="language-cpp">typedef std::vector&lt;CardInformation&gt;::iterator CardIterator;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2236623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236623</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:30:56 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>Ratatosky schrieb:</p>
<blockquote>
<p>Kellerautomat schrieb:</p>
<blockquote>
<p>Zeig doch mal Fehlermeldungen, dann kann man dir besser helfen.</p>
</blockquote>
<p>Kein &quot;=&quot;-Operator stimmt mit diesen Operanden überein.<br />
Kein &quot;++&quot;-Operator stimmt mit diesen Operanden überein.</p>
</blockquote>
<pre><code class="language-cpp">typedef std::vector&lt;CardInformation&gt; CardVector; 
    typedef CardVector::iterator CardIterator;
</code></pre>
<p>Schreib mal statt Zeile 2</p>
<pre><code class="language-cpp">typedef std::vector&lt;CardInformation&gt;::iterator CardIterator;
</code></pre>
</blockquote>
<p>Gute Idee, ändert aber leider ebenfalls nichts an den beiden Fehlermeldungen, der Iterator wird nach wie vor nicht als ein iterator auf einen CardVector wahrgenommen wie es scheint...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236624</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:30:56 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:32:27 GMT]]></title><description><![CDATA[<p>Naja print() ist const, aber dann weist du ein Member zu ( <code>Iter = Vect.begin()</code> )...<br />
Das kann ja nicht gut gehen...</p>
<p>Nimm doch einfach einen const_iterator, den Du in der for schleife definierst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236625</guid><dc:creator><![CDATA[Furble Wurble]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:36:43 GMT]]></title><description><![CDATA[<p>Furble Wurble schrieb:</p>
<blockquote>
<p>Naja print() ist const, aber dann weist du ein Member zu ( <code>Iter = Vect.begin()</code> )...<br />
Das kann ja nicht gut gehen...</p>
<p>Nimm doch einfach einen const_iterator, den Du in der for schleife definierst.</p>
</blockquote>
<p>Ah danke stimmt jetzt funktionierts!<br />
An alle die Mitgeholfen haben, vielen Dank! <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="😉"
    /> Problem gelöst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236626</guid><dc:creator><![CDATA[Ratatosky]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 13:38:16 GMT]]></title><description><![CDATA[<p>Furble Wurble schrieb:</p>
<blockquote>
<p>Naja print() ist const, aber dann weist du ein Member zu ( <code>Iter = Vect.begin()</code> )...<br />
Das kann ja nicht gut gehen...</p>
<p>Nimm doch einfach einen const_iterator, den Du in der for schleife definierst.</p>
</blockquote>
<p>Mist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> Das wollte ich genau in diesem Moment schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236627</guid><dc:creator><![CDATA[IrgendeinName]]></dc:creator><pubDate>Sun, 29 Jul 2012 13:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Iterator-Problem on Sun, 29 Jul 2012 19:58:13 GMT]]></title><description><![CDATA[<p>IrgendeinName schrieb:</p>
<blockquote>
<p>Furble Wurble schrieb:</p>
<blockquote>
<p>Naja print() ist const, aber dann weist du ein Member zu ( <code>Iter = Vect.begin()</code> )...<br />
Das kann ja nicht gut gehen...</p>
<p>Nimm doch einfach einen const_iterator, den Du in der for schleife definierst.</p>
</blockquote>
<p>Mist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> Das wollte ich genau in diesem Moment schreiben.</p>
</blockquote>
<p>Brauchst du den Ruhm, das Problem geloest zu haben?</p>
<p>Ratatosky schrieb:</p>
<blockquote>
<p>Sone schrieb:</p>
<blockquote>
<p>Ratatosky schrieb:</p>
<blockquote>
<p>Kellerautomat schrieb:</p>
<blockquote>
<p>Zeig doch mal Fehlermeldungen, dann kann man dir besser helfen.</p>
</blockquote>
<p>Kein &quot;=&quot;-Operator stimmt mit diesen Operanden überein.<br />
Kein &quot;++&quot;-Operator stimmt mit diesen Operanden überein.</p>
</blockquote>
<pre><code class="language-cpp">typedef std::vector&lt;CardInformation&gt; CardVector; 
    typedef CardVector::iterator CardIterator;
</code></pre>
<p>Schreib mal statt Zeile 2</p>
<pre><code class="language-cpp">typedef std::vector&lt;CardInformation&gt;::iterator CardIterator;
</code></pre>
</blockquote>
<p>Gute Idee, ändert aber leider ebenfalls nichts an den beiden Fehlermeldungen</p>
</blockquote>
<p>Sollte es auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236628</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 29 Jul 2012 19:58:13 GMT</pubDate></item></channel></rss>