<?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[DBähnlicher container?]]></title><description><![CDATA[<p>Hallo</p>
<p>ich schreibe grade zur Übung an einem Verwaltungsprogramm das Items über IDs verwaltet.<br />
zur Zeit hab ich alle Items noch in Arrays verwaltet. Aber da ich mich ja weiterbilden will hab ich mir gedacht das könnte man auch geschickter machen...<br />
evtl in STL container?</p>
<p>ist es möglich ID und 2 CStrings in einem Container zu verwalten(also ähnlich wie in einer DB) oder wie könnte ich das anstellen?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162625/dbähnlicher-container</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 20:00:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162625.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Oct 2006 14:25:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DBähnlicher container? on Fri, 20 Oct 2006 14:25:02 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ich schreibe grade zur Übung an einem Verwaltungsprogramm das Items über IDs verwaltet.<br />
zur Zeit hab ich alle Items noch in Arrays verwaltet. Aber da ich mich ja weiterbilden will hab ich mir gedacht das könnte man auch geschickter machen...<br />
evtl in STL container?</p>
<p>ist es möglich ID und 2 CStrings in einem Container zu verwalten(also ähnlich wie in einer DB) oder wie könnte ich das anstellen?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1158437</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1158437</guid><dc:creator><![CDATA[hanzo]]></dc:creator><pubDate>Fri, 20 Oct 2006 14:25:02 GMT</pubDate></item><item><title><![CDATA[Reply to DBähnlicher container? on Fri, 20 Oct 2006 14:30:00 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>zum Beispiel mit einer <em>std::map&lt;ID-Typ, Wert-Typ&gt;</em><br />
Der Werte-Typ kann natürlich auch ein struct mit mehreren Einzelwerten sein.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1158443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1158443</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 20 Oct 2006 14:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to DBähnlicher container? on Tue, 24 Oct 2006 14:14:53 GMT]]></title><description><![CDATA[<p>hab wieder etwas weiter gebastelt<br />
hatte aber ein paar Probleme</p>
<p>1.habe versucht mit Pointer â la pMap-&gt; auf meine Map aber weis nicht wie ich das bewerkstelligen soll</p>
<pre><code class="language-cpp">typedef map&lt;CString,testSTRUCT&gt; DIEMAP
DIEMAP Map;
DIEMAP* pMap;

pMap-&gt;...
</code></pre>
<p>2.habe dann versucht das mit eine Klasse zu umgehen</p>
<pre><code class="language-cpp">Klasse
{
vector&lt;CString&gt; IDs;
map&lt;CString,meinSTRUCT&gt; Map;
}

speichern/holen von daten in mein Struct mit 
for(...)
{
    pKlasse-&gt;Map[ pKlasse-&gt;IDs.MoveNext()/*oder so*/]
}
</code></pre>
<p>Habt ihr da noch Tips für mich wie ich das leichter/schöner machen könnte.<br />
Hab mir jetzt schon n paar sachen zu den containern angeschaut aber nix wirklich gutes gefunden. Falls mir jmd n guten Link hätte...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160358</guid><dc:creator><![CDATA[hanzo]]></dc:creator><pubDate>Tue, 24 Oct 2006 14:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to DBähnlicher container? on Tue, 24 Oct 2006 14:49:29 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Schau dir gründlich die Artikel in unserem Forumsmagazin über die SQL-Container an.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160408</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 24 Oct 2006 14:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to DBähnlicher container? on Tue, 24 Oct 2006 15:27:06 GMT]]></title><description><![CDATA[<p>Ich gehe jetzt mal davon aus dass <em>SQL Container</em> ein &quot;war kurz verwirrt&quot; Fehler war, und du in wirklichkeit die STL Container meinst. Ich kenne auf jeden Fall keine SQL Container, ausser natürlich dem was man gemeinhin als TABLE bezeichnet <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1160439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160439</guid><dc:creator><![CDATA[Plotzenhotz]]></dc:creator><pubDate>Tue, 24 Oct 2006 15:27:06 GMT</pubDate></item><item><title><![CDATA[Reply to DBähnlicher container? on Tue, 24 Oct 2006 15:48:47 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ja soll natürlich STL heißen. SQL... kommt wohl vom Thread-Titel.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160459</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 24 Oct 2006 15:48:47 GMT</pubDate></item></channel></rss>