<?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[Farge an CStoll]]></title><description><![CDATA[<p>hi,</p>
<p>du hattest letztes mal auf mein Problem mit dem einlesen in ein array folgendes gepostet, da wollt ich gern wissen wie &quot;struct coord&quot; genau aussieht.??</p>
<p>gruss Ghost43</p>
<p>hier: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-135462.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-135462.html</a></p>
<pre><code class="language-cpp">vector&lt;coord&gt; Punkte;
string line;
getline(file,line);
//Name aus 'line' extrahieren
getline(file,line);
//Dimension extrahieren
getline(file,line);
//Typ extrahieren
getline(file,line);
if(line==&quot;NODE_COORD_SECTION&quot;)
  while(file)
  {
    int num;double x,y;
    file&gt;&gt;num&gt;&gt;x&gt;&gt;y;
    Punkte.push_back(coord(x,y));
  }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/135949/farge-an-cstoll</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 06:11:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/135949.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Feb 2006 11:59:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Farge an CStoll on Mon, 06 Feb 2006 11:59:27 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>du hattest letztes mal auf mein Problem mit dem einlesen in ein array folgendes gepostet, da wollt ich gern wissen wie &quot;struct coord&quot; genau aussieht.??</p>
<p>gruss Ghost43</p>
<p>hier: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-135462.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-135462.html</a></p>
<pre><code class="language-cpp">vector&lt;coord&gt; Punkte;
string line;
getline(file,line);
//Name aus 'line' extrahieren
getline(file,line);
//Dimension extrahieren
getline(file,line);
//Typ extrahieren
getline(file,line);
if(line==&quot;NODE_COORD_SECTION&quot;)
  while(file)
  {
    int num;double x,y;
    file&gt;&gt;num&gt;&gt;x&gt;&gt;y;
    Punkte.push_back(coord(x,y));
  }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/987304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/987304</guid><dc:creator><![CDATA[Ghost43]]></dc:creator><pubDate>Mon, 06 Feb 2006 11:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to Farge an CStoll on Mon, 06 Feb 2006 12:22:10 GMT]]></title><description><![CDATA[<p>Wenn es sich immer noch um das slebe Problem handelt, kannst du doch auch deinen alten Thread weiterverwenden <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>OK, zu deiner Frage:<br />
Im einfachsten Fall baust du dir ein struct mit zwei Elementvariablen und einem Konstruktor auf:</p>
<pre><code class="language-cpp">struct coord
{
  double x,y;
  coord(double nx,ny) : x(nx),y(ny) {}
};
</code></pre>
<p>Wenn du willst, kannst du dazu noch weitere Member-Variablen oder Methoden definieren, die du für den Einsatz deiner Nodes benötigt werden.</p>
<p>Noch einfacher wäre nur folgendes:</p>
<pre><code class="language-cpp">typedef std::pair&lt;double,double&gt; coord;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/987316</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/987316</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Mon, 06 Feb 2006 12:22:10 GMT</pubDate></item></channel></rss>