<?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[formatierter string]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es so etwas ähnliches wie printf, nur dass meine Ausgabe nicht auf der Konsole ausgegeben wird, sondern in einer Variable gespeichert wird?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/141800/formatierter-string</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 16:18:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/141800.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Mar 2006 08:49:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 08:49:24 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es so etwas ähnliches wie printf, nur dass meine Ausgabe nicht auf der Konsole ausgegeben wird, sondern in einer Variable gespeichert wird?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023539</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023539</guid><dc:creator><![CDATA[Klausi]]></dc:creator><pubDate>Sat, 25 Mar 2006 08:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 08:54:06 GMT]]></title><description><![CDATA[<p>Ja, Boost hat sowas und nennt sich auch rein zufällig format:<br />
<a href="http://www.boost.org/libs/libraries.htm#String" rel="nofollow">http://www.boost.org/libs/libraries.htm#String</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023540</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 25 Mar 2006 08:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 09:08:19 GMT]]></title><description><![CDATA[<p>Die C Runtime hat so etwas auch <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>sprintf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023545</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 25 Mar 2006 09:08:19 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 09:25:19 GMT]]></title><description><![CDATA[<p>Schön, aber ist 1. kein C++ und zweitens kann sprintf nicht so viel, wie boost::format kann. boost::format ist immerhin typsicher, arbeitet mit den C++ Streams besser zusammen, wirft Exceptions und hat ein paar Formatierungs-Features mehr. Alle Features und Unterschiede zu printf findet man hier:<br />
<a href="http://www.boost.org/libs/format/doc/format.html#syntax" rel="nofollow">http://www.boost.org/libs/format/doc/format.html#syntax</a></p>
<p>Warum also das schwächere C benutzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023557</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 25 Mar 2006 09:25:19 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 10:06:22 GMT]]></title><description><![CDATA[<p>Weil die C Runtimes im gegensatz zu Boost zum C++ Standard gehören?</p>
<p>Warum zusätzliche Anhängigkeiten ins Projekt bringen, wenn die einfachste Lösung ausreicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023566</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 25 Mar 2006 10:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 10:11:56 GMT]]></title><description><![CDATA[<p>wenn die printf formatierungs Funktionialität ausreichend ist .. ist wohl sprintf die bessere und schneller alternative:)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023569</guid><dc:creator><![CDATA[BorisProgger]]></dc:creator><pubDate>Sat, 25 Mar 2006 10:11:56 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 10:26:41 GMT]]></title><description><![CDATA[<p>Danke Archti, danke SeppSchrot, ich werde es mit sprintf ausprobieren und wenn das nicht reicht, nehme ich das Zusatzpacket <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1023582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023582</guid><dc:creator><![CDATA[Klausi]]></dc:creator><pubDate>Sat, 25 Mar 2006 10:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 11:11:19 GMT]]></title><description><![CDATA[<p>Kann man Leute wie SeppSchrott nicht kickbannen?</p>
<p>und dann auch noch sprintf, wie kann man sowas nur vorschlagen..</p>
<p>wenn du unbedingt c programmieren willst, dann nimm snprintf</p>
<p>wenn du iso-c++ programmieren willst und nicht wie SeppSchrott auf Buffer Overflows stehst, dann nimm boost::format</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023614</guid><dc:creator><![CDATA[:shakehead:]]></dc:creator><pubDate>Sat, 25 Mar 2006 11:11:19 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 12:19:13 GMT]]></title><description><![CDATA[<p>SeppSchrot schrieb:</p>
<blockquote>
<p>Weil die C Runtimes im gegensatz zu Boost zum C++ Standard gehören?</p>
</blockquote>
<p>da hast du leider recht.<br />
und wieso gott verdammt ist das so?<br />
kann nicht irgendwer mal herkommen und std::format, std::thread, std::net in den standard erfinden?<br />
was macht das standard-komitee da? schlafen die den ganzen tag durch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023650</guid><dc:creator><![CDATA[o.O omg!]]></dc:creator><pubDate>Sat, 25 Mar 2006 12:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 12:54:45 GMT]]></title><description><![CDATA[<p>Man kann das auch in C++ lösen, ohne sprintf oder boost. Die Lösung: std::stringstream. <a href="http://www.cppreference.com/cppsstream/index.html" rel="nofollow">http://www.cppreference.com/cppsstream/index.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023677</guid><dc:creator><![CDATA[picocat]]></dc:creator><pubDate>Sat, 25 Mar 2006 12:54:45 GMT</pubDate></item><item><title><![CDATA[Reply to formatierter string on Sat, 25 Mar 2006 15:49:35 GMT]]></title><description><![CDATA[<p>Lars Hupel schrieb:</p>
<blockquote>
<p>Man kann das auch in C++ lösen, ohne sprintf oder boost. Die Lösung: std::stringstream. <a href="http://www.cppreference.com/cppsstream/index.html" rel="nofollow">http://www.cppreference.com/cppsstream/index.html</a></p>
</blockquote>
<p>und wenn ich die sprintf-syntax benutzen will, aber weder auf die C-Funktionen zurückgreifen will noch boost benutzen will? was mach ich dann?</p>
<p>richtig: ich nehme das nichtvorhandene std::format; weil irgendwelche standard-freaks sowas nicht hinbekommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1023778</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1023778</guid><dc:creator><![CDATA[o.O omg!]]></dc:creator><pubDate>Sat, 25 Mar 2006 15:49:35 GMT</pubDate></item></channel></rss>