<?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[Ich verstehe ein Stück C++ Code nicht, bitte um Hilfe.]]></title><description><![CDATA[<p>Hallo liebe Forummitglieder,</p>
<p>ich versuche mich in fremdes Code einzuarbeiten, habe auch nicht allzuviel Erfahrung mit C++. Verstehe ich richtig den code: Wir definieren ein neues Typ INDATA_TYPE und anschließend erzeugen ein Vektor mit je 2 INDATA_TYP Elementen und eins vom Typ double. Die letzen zwei Zeilen verstehe ich nicht. Ist es ein Konstruktor?</p>
<p>Für eure Hilfe bin ich euch sehr dankbar.</p>
<pre><code class="language-cpp">typedef struct {
  float t,y;
} INDATA_TYPE;

vector&lt;INDATA_TYPE&gt; data;
vector&lt;double&gt; lib;
typedef vector&lt;INDATA_TYPE&gt;::const_iterator CI_dt;
typedef vector&lt;INDATA_TYPE&gt;::iterator       MI_dt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/238339/ich-verstehe-ein-stück-c-code-nicht-bitte-um-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 03:06:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/238339.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Apr 2009 10:06:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ich verstehe ein Stück C++ Code nicht, bitte um Hilfe. on Thu, 09 Apr 2009 10:06:40 GMT]]></title><description><![CDATA[<p>Hallo liebe Forummitglieder,</p>
<p>ich versuche mich in fremdes Code einzuarbeiten, habe auch nicht allzuviel Erfahrung mit C++. Verstehe ich richtig den code: Wir definieren ein neues Typ INDATA_TYPE und anschließend erzeugen ein Vektor mit je 2 INDATA_TYP Elementen und eins vom Typ double. Die letzen zwei Zeilen verstehe ich nicht. Ist es ein Konstruktor?</p>
<p>Für eure Hilfe bin ich euch sehr dankbar.</p>
<pre><code class="language-cpp">typedef struct {
  float t,y;
} INDATA_TYPE;

vector&lt;INDATA_TYPE&gt; data;
vector&lt;double&gt; lib;
typedef vector&lt;INDATA_TYPE&gt;::const_iterator CI_dt;
typedef vector&lt;INDATA_TYPE&gt;::iterator       MI_dt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1693373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693373</guid><dc:creator><![CDATA[bondu]]></dc:creator><pubDate>Thu, 09 Apr 2009 10:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ich verstehe ein Stück C++ Code nicht, bitte um Hilfe. on Thu, 09 Apr 2009 10:10:05 GMT]]></title><description><![CDATA[<p>Nein das ist kein Ctor, das sind <a href="http://www.google.de/search?hl=de&amp;q=c%2B%2B+typedef&amp;btnG=Google-Suche&amp;meta=&amp;aq=0&amp;oq=C%2B%2B+type" rel="nofollow">typedefs</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693375</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Thu, 09 Apr 2009 10:10:05 GMT</pubDate></item><item><title><![CDATA[Reply to Ich verstehe ein Stück C++ Code nicht, bitte um Hilfe. on Thu, 09 Apr 2009 10:14:05 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">//das hier ist C:
typedef struct {
  float t,y;
} INDATA_TYPE;

//so macht man das in C++:
struct INDATA_TYPE{
  float t,y;
};

//das hier sind die beiden vectoren (arrays):
vector&lt;INDATA_TYPE&gt; data;
vector&lt;double&gt; lib;

//und hier werden typen definiert (typedef FROM TO;)
typedef vector&lt;INDATA_TYPE&gt;::const_iterator CI_dt;
typedef vector&lt;INDATA_TYPE&gt;::iterator       MI_dt;
</code></pre>
<p>zu iteratoren googelst du am besten mal, weil es ein sehr umfangreiches konzept ist, was sich durch ganz C++ zieht - und ich kanns auch nicht in 3 sätzen zusammenfassen ^^</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693378</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Thu, 09 Apr 2009 10:14:05 GMT</pubDate></item></channel></rss>