<?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[string; string; int; double;]]></title><description><![CDATA[<p>Hallo</p>
<p>besteht die Möglichkeit, dass ich einen großen Datentyp habe, in dem ich String, int und double zusammenfasse.</p>
<p>Konkret:</p>
<p>ich habe einen Wert string name, string vorname, int alter, double goesse und möchte die in eine String packen den ich dann übers Socket verschicken kann.<br />
So etwa in der Form:</p>
<p>Steffi; Rex; 45; 1.55;<br />
Alex; Adre; 34; 1.89;<br />
usw..</p>
<p>Jemand ne Idee, wie ich das machen kann?</p>
<p>Dankeschön</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/140410/string-string-int-double</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 02:30:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140410.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Mar 2006 17:12:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 17:12:42 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>besteht die Möglichkeit, dass ich einen großen Datentyp habe, in dem ich String, int und double zusammenfasse.</p>
<p>Konkret:</p>
<p>ich habe einen Wert string name, string vorname, int alter, double goesse und möchte die in eine String packen den ich dann übers Socket verschicken kann.<br />
So etwa in der Form:</p>
<p>Steffi; Rex; 45; 1.55;<br />
Alex; Adre; 34; 1.89;<br />
usw..</p>
<p>Jemand ne Idee, wie ich das machen kann?</p>
<p>Dankeschön</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016192</guid><dc:creator><![CDATA[kurze Frage]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 17:25:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;sstream&gt;
using namespace std;

strinstream serializer;
serializer &lt;&lt; Vorname &lt;&lt; &quot;;&quot; &lt;&lt; Name &lt;&lt; &quot;;&quot; &lt;&lt; Alter &lt;&lt; &quot;;&quot; &lt;&lt; Groesse;
string alsString = serializer.str();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1016200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016200</guid><dc:creator><![CDATA[GehtSo]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 17:32:03 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Pseudocode:</p>
<pre><code class="language-cpp">class DeinDatentyp
{
private:
  std::string name;
  std::string vorname;
  unsigned char alter; //älter als 255 wird wohl keiner
  float groesse; //float sollte auch reichen ;)
public:
  DeinDatentype() :initialisationen {}

  friend std::ofstream &amp;operator&lt;&lt;( std::ostream &amp;o, cosnt DeinDatentyp &amp;v )
  {
    o &lt;&lt; name &lt;&lt; vorname ... usw usw
  }
};
</code></pre>
<p>grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016204</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 17:32:53 GMT]]></title><description><![CDATA[<p>sehr gut.. vielen Dank</p>
<p>und wie löse ich das auf der anderen Seite des Socket wieder auf? Bzw schreibe es in ein File ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016205</guid><dc:creator><![CDATA[kurze Frage]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:32:53 GMT</pubDate></item><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 17:35:34 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Du schickst es als Bytearray und der Empfänger schiebt das in die Datei. Ganz einfach soweit! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016209</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 17:36:23 GMT]]></title><description><![CDATA[<p>konkret ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016210</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016210</guid><dc:creator><![CDATA[kurze Frage]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:36:23 GMT</pubDate></item><item><title><![CDATA[Reply to string; string; int; double; on Tue, 14 Mar 2006 18:06:46 GMT]]></title><description><![CDATA[<p>es gibt doch genug gute socket tutorials, da steht das sicher drinnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016230</guid><dc:creator><![CDATA[__STD]]></dc:creator><pubDate>Tue, 14 Mar 2006 18:06:46 GMT</pubDate></item></channel></rss>