<?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[Problem mit Printfunktion &amp;lt;template&amp;gt;]]></title><description><![CDATA[<p>Hallo!<br />
Ich hab eine generische Printfunktion mit Iteratoren als Parameter geschrieben, allerdings funktioniert es aus irgendeinem Grund (Debugausgabe versteh ich nicht):</p>
<pre><code>template&lt;typename TItor&gt;
void Print(TItor first, TItor last, string const&amp; str, ostream&amp; stream=cout)
{
	stream &lt;&lt; endl &lt;&lt; str &lt;&lt; endl;

	copy(first, last, ostream_iterator &lt;iterator_traits&lt;TItor&gt;::value_type&gt;(stream, &quot; &quot;));

}
</code></pre>
<p>Der Prototyp sieht im Header-File folgendermaßen aus:</p>
<pre><code>template&lt;typename TItor&gt;
void Print(TItor first, TItor last, string const&amp; str, ostream&amp; stream);
</code></pre>
<p>Der Aufruf in der main Funktion sieht folgendermaßen aus:</p>
<pre><code>Print(liste.begin(),liste.end(),&quot;unsorted values&quot;,cout);
</code></pre>
<p>include iterator, iostream wurde schon eingebunden</p>
<p>Vllt versteht ihr was gemeint wird:</p>
<pre><code>Error	1	error LNK2019: unresolved external symbol &quot;void __cdecl
 Print&lt;class std::_List_iterator&lt;class std::_List_val&lt;class Element,class
 std::allocator&lt;class Element&gt; &gt; &gt; &gt;(class std::_List_iterator&lt;class std::_List_val&lt;class Element,class std::allocator&lt;class Element&gt; &gt; &gt;,class 
std::_List_iterator&lt;class std::_List_val&lt;class Element,class 
std::allocator&lt;class Element&gt; &gt; &gt;,class std::basic_string&lt;char,struct 
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class 
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;)&quot; 
(??$Print@V?$_List_iterator@V?$_List_val@VElement@@V?$allocator@VElement@@@std@@
@std@@@std@@@@YAXV?$_List_iterator@V?$_List_val@VElement@@V?$allocator@VElement@
@@std@@@std@@@std@@0ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1
@AAV?$basic_ostream@DU?$char_traits@D@std@@@1@@Z) referenced in function _main
	D:\Pfad\main.obj
</code></pre>
<p>mfg<br />
ACnut</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/316878/problem-mit-printfunktion-lt-template-gt</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 17:16:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/316878.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 May 2013 20:48:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 20:50:56 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich hab eine generische Printfunktion mit Iteratoren als Parameter geschrieben, allerdings funktioniert es aus irgendeinem Grund (Debugausgabe versteh ich nicht):</p>
<pre><code>template&lt;typename TItor&gt;
void Print(TItor first, TItor last, string const&amp; str, ostream&amp; stream=cout)
{
	stream &lt;&lt; endl &lt;&lt; str &lt;&lt; endl;

	copy(first, last, ostream_iterator &lt;iterator_traits&lt;TItor&gt;::value_type&gt;(stream, &quot; &quot;));

}
</code></pre>
<p>Der Prototyp sieht im Header-File folgendermaßen aus:</p>
<pre><code>template&lt;typename TItor&gt;
void Print(TItor first, TItor last, string const&amp; str, ostream&amp; stream);
</code></pre>
<p>Der Aufruf in der main Funktion sieht folgendermaßen aus:</p>
<pre><code>Print(liste.begin(),liste.end(),&quot;unsorted values&quot;,cout);
</code></pre>
<p>include iterator, iostream wurde schon eingebunden</p>
<p>Vllt versteht ihr was gemeint wird:</p>
<pre><code>Error	1	error LNK2019: unresolved external symbol &quot;void __cdecl
 Print&lt;class std::_List_iterator&lt;class std::_List_val&lt;class Element,class
 std::allocator&lt;class Element&gt; &gt; &gt; &gt;(class std::_List_iterator&lt;class std::_List_val&lt;class Element,class std::allocator&lt;class Element&gt; &gt; &gt;,class 
std::_List_iterator&lt;class std::_List_val&lt;class Element,class 
std::allocator&lt;class Element&gt; &gt; &gt;,class std::basic_string&lt;char,struct 
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class 
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;)&quot; 
(??$Print@V?$_List_iterator@V?$_List_val@VElement@@V?$allocator@VElement@@@std@@
@std@@@std@@@@YAXV?$_List_iterator@V?$_List_val@VElement@@V?$allocator@VElement@
@@std@@@std@@@std@@0ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1
@AAV?$basic_ostream@DU?$char_traits@D@std@@@1@@Z) referenced in function _main
	D:\Pfad\main.obj
</code></pre>
<p>mfg<br />
ACnut</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324543</guid><dc:creator><![CDATA[ACnut]]></dc:creator><pubDate>Sun, 19 May 2013 20:50:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 20:53:54 GMT]]></title><description><![CDATA[<p>Hast du möglicherweise die Implementation ins cpp-File gesteckt? Templates müssen vollständig im Header definiert sein <a href="http://www.parashift.com/c++-faq-lite/separate-template-fn-defn-from-decl.html" rel="nofollow">http://www.parashift.com/c++-faq-lite/separate-template-fn-defn-from-decl.html</a>.</p>
<p>Ausserdem nie <code>using namespace std;</code> im Header schreiben (&quot;using namespace std header&quot; ist googlebar).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324546</guid><dc:creator><![CDATA[häta]]></dc:creator><pubDate>Sun, 19 May 2013 20:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Thu, 12 Jun 2014 00:42:05 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324548</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 00:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 21:11:28 GMT]]></title><description><![CDATA[<pre><code>copy(first, last, ostream_iterator &lt;typename iterator_traits&lt;TItor&gt;::value_type&gt;(stream, &quot; &quot;));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2324556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324556</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Sun, 19 May 2013 21:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 21:13:33 GMT]]></title><description><![CDATA[<p>Swordfish schrieb:</p>
<blockquote>
<p>[cpp]#include &lt;list&gt;<br />
#include &lt;string&gt;<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>template&lt;typename TItor&gt;<br />
void Print(TItor first, TItor last, string const&amp; str, ostream&amp; stream=cout)<br />
{<br />
stream &lt;&lt; endl &lt;&lt; str &lt;&lt; endl;</p>
<p>copy(first, last, ostream_iterator &lt;iterator_traits&lt;TItor&gt;::value_type&gt;(stream, &quot; &quot;));</p>
<p>}</p>
<p>Was sollen die <code>endl</code> s?</p>
</blockquote>
<p>bingo template funktion muss komplett im header stehen. zwar musste ich jetzt den ausgabeoperator überladen aber jetzt geht es wenigstens <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="🙂"
    /> vielen dank<br />
das mit dem namespace muss ich noch ändern danke</p>
<p>weil die ausgabe so sein muss <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> :</p>
<pre><code>unsorted values:

6-0 10-1 9-2 0-3 7-4 10-5 7-6 7-7 1-8 5-9 5-10 7-11 6-12 7-13 0-14
8-15 8-16 9-1 7 1-18 9-19 9-20 9-21 0-22 10-23 7-24 8-25 6-26 2-27
7-28 7-29 6-30 1-31 8-32 2-33 4-34 4-35 1-36 6-37 1-38 8-39

ascend stable sorted values:

0-3 0-14 0-22 1-8 1-18 1-31 1-36 1-38 2-27 2-33 4-34 4-35 5-9 5-10
6-0 6-12 6-26 6-30 6-37 7-4 7-6 7-7 7-11 7-13 7-24 7-28 7-29 8-15
8-16 8-25 8-32 8-39 9-2 9-1 7 9-19 9-20 9-21 10-1 10-5 10-23

ascend sorted values:

0-3 0-14 0-22 1-8 1-18 1-31 1-36 1-38 2-27 2-33 4-34 4-35 5-9 5-10
6-0 6-26 6-12 6-30 6-37 7-28 7-4 7-6 7-7 7-11 7-13 7-24 7-29 8-15
8-16 8-39 8-32 8-25 9-21 9-2 9-19 9-17 9-20 10-5 10-1 10-23
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2324558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324558</guid><dc:creator><![CDATA[ACnut]]></dc:creator><pubDate>Sun, 19 May 2013 21:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Thu, 12 Jun 2014 00:45:46 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324562</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 00:45:46 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 21:38:34 GMT]]></title><description><![CDATA[<p>camper hat Recht. Da muss [temp.res]/2 berücksichtigt werden.</p>
<p>Swordfish schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6642">@camper</a>: <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
</blockquote>
<p>Jo, aber des wars net.</p>
<p>Die Fehlermeldung ist eine ganz gewöhnliche Linker-Beschwerde darüber, dass keine Definition für eine Funktion gefunden wurde.<br />
(Nur so lang, da die komplette template-id + der gemangelte Name hingeschrieben wurde).</p>
<p>Wäre da ein <code>typename</code> zu wenig, wäre die Fehlermeldung doch direkter?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324565</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 19 May 2013 21:38:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 21:40:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6642">@camper</a> wieso kann ma den typename auch innerhalb der stl-algo haben? was bewirkt das</p>
<p>\n haben wir soweit ich weiß nie benutzt, daher ist es bei uns endl zur gewohnheit gerworden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324568</guid><dc:creator><![CDATA[ACnut]]></dc:creator><pubDate>Sun, 19 May 2013 21:40:05 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 21:47:50 GMT]]></title><description><![CDATA[<p>ACnut schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6642">@camper</a> wieso kann ma den typename auch innerhalb der stl-algo haben? was bewirkt das</p>
</blockquote>
<p>Ist der Name nicht selbsterklärend? Das sagt, dass es sich bei nachfolgendem um einen Typen handelt, und nicht um einen Wert.</p>
<p>ACnut schrieb:</p>
<blockquote>
<p>\n haben wir soweit ich weiß nie benutzt, daher ist es bei uns endl zur gewohnheit gerworden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
</blockquote>
<p>Shit happens. Gewöhn es dir ab und sag es auch deinen Kommilitonen. <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/2324570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324570</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 May 2013 21:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Thu, 12 Jun 2014 00:42:09 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324573</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 00:42:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 21:57:59 GMT]]></title><description><![CDATA[<p>ja ich werds mit \n versuchen <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/2324579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324579</guid><dc:creator><![CDATA[ACnut]]></dc:creator><pubDate>Sun, 19 May 2013 21:57:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:03:49 GMT]]></title><description><![CDATA[<p>ACnut schrieb:</p>
<blockquote>
<p>ja ich werds mit \n versuchen <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>
</blockquote>
<p>und wenn dir \ oder ' zu blöd zum tippen ist, dann schreib dir einen Manipulator:</p>
<pre><code>ostream&amp; newl( ostream&amp; out )
{
    out &lt;&lt; '\n';
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2324581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324581</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 May 2013 22:03:49 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:06:28 GMT]]></title><description><![CDATA[<p>out schrieb:</p>
<blockquote>
<p>ACnut schrieb:</p>
<blockquote>
<p>ja ich werds mit \n versuchen <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>
</blockquote>
<p>und wenn dir \ oder ' zu blöd zum tippen ist, dann schreib dir einen Manipulator:</p>
<pre><code>ostream&amp; newl( ostream&amp; out )
{
    out &lt;&lt; '\n';
}
</code></pre>
</blockquote>
<p>Ist das dein Ernst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324582</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 19 May 2013 22:06:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:07:40 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>ACnut schrieb:</p>
<blockquote>
<p>ja ich werds mit \n versuchen <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>
</blockquote>
<p>und wenn dir \ oder ' zu blöd zum tippen ist, dann schreib dir einen Manipulator:</p>
<pre><code>ostream&amp; newl( ostream&amp; out )
{
    out &lt;&lt; '\n';
}
</code></pre>
</blockquote>
<p>Ist das dein Ernst?</p>
</blockquote>
<p>Ja. Manche nehmen extra amerikanische Tastatur weil es ihnen zu blöd ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324583</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 May 2013 22:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:15:58 GMT]]></title><description><![CDATA[<p><code>const char nl = '\n'</code> ?</p>
<p>out schrieb:</p>
<blockquote>
<p>Manche nehmen extra amerikanische Tastatur weil es ihnen zu blöd ist.</p>
</blockquote>
<p>Das ist natürlich die &quot;richtige&quot; Lösung, weil man dann die Sprache benutzt, wie sie gedacht ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324585</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 19 May 2013 22:15:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:18:26 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p><code>const char nl = '\n'</code> ?</p>
</blockquote>
<p>Hmm, zu kompliziert gedacht. Touche <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>SeppJ schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>Manche nehmen extra amerikanische Tastatur weil es ihnen zu blöd ist.</p>
</blockquote>
<p>Das ist natürlich die &quot;richtige&quot; Lösung, weil man dann die Sprache benutzt, wie sie gedacht ist.</p>
</blockquote>
<p>Jup.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324586</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 May 2013 22:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:21:06 GMT]]></title><description><![CDATA[<p>out schrieb:</p>
<blockquote>
<p>Sone schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>ACnut schrieb:</p>
<blockquote>
<p>ja ich werds mit \n versuchen <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>
</blockquote>
<p>und wenn dir \ oder ' zu blöd zum tippen ist, dann schreib dir einen Manipulator:</p>
<pre><code>ostream&amp; newl( ostream&amp; out )
{
    out &lt;&lt; '\n';
}
</code></pre>
</blockquote>
<p>Ist das dein Ernst?</p>
</blockquote>
<p>Ja. Manche nehmen extra amerikanische Tastatur weil es ihnen zu blöd ist.</p>
</blockquote>
<p>Nein, ich meinte, genau wegen dem was SeppJ meinte, du kannst auch einfach eine Konstante nehmen. <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/2324588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324588</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 19 May 2013 22:21:06 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 22:23:11 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>Nein, ich meinte, genau wegen dem was SeppJ meinte, du kannst auch einfach eine Konstante nehmen. <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>
</blockquote>
<p>Ja, hast Recht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> *kopf meets tischkante*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324589</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 May 2013 22:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Thu, 12 Jun 2014 00:42:13 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324594</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 00:42:13 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 23:02:59 GMT]]></title><description><![CDATA[<p>Swordfish schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>SeppJ schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>Manche nehmen extra amerikanische Tastatur weil es ihnen zu blöd ist.</p>
</blockquote>
<p>Das ist natürlich die &quot;richtige&quot; Lösung, weil man dann die Sprache benutzt, wie sie gedacht ist.</p>
</blockquote>
<p>Jup.</p>
</blockquote>
<p>mhm. Meine Finger wissen sehr genau, wo benötigte Tasten(-kombinationen) sind. Auch auf Tastaturen mit deutschem Layout ... alles Gewohnheitssache.</p>
</blockquote>
<p>Isso! Dank CodeBlocks drücke ich eh nur drei Tasten, und die sind mir im Blut <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> '\n '\n '\n</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324595</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Sun, 19 May 2013 23:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Sun, 19 May 2013 23:16:55 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>Swordfish schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>SeppJ schrieb:</p>
<blockquote>
<p>out schrieb:</p>
<blockquote>
<p>Manche nehmen extra amerikanische Tastatur weil es ihnen zu blöd ist.</p>
</blockquote>
<p>Das ist natürlich die &quot;richtige&quot; Lösung, weil man dann die Sprache benutzt, wie sie gedacht ist.</p>
</blockquote>
<p>Jup.</p>
</blockquote>
<p>mhm. Meine Finger wissen sehr genau, wo benötigte Tasten(-kombinationen) sind. Auch auf Tastaturen mit deutschem Layout ... alles Gewohnheitssache.</p>
</blockquote>
<p>Isso! Dank CodeBlocks drücke ich eh nur drei Tasten, und die sind mir im Blut <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> '\n '\n '\n</p>
</blockquote>
<p>Was hat das mit CodeBlocks zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324602</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 May 2013 23:16:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Thu, 12 Jun 2014 00:42:17 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2324606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324606</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 12 Jun 2014 00:42:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Printfunktion &amp;lt;template&amp;gt; on Mon, 20 May 2013 07:10:07 GMT]]></title><description><![CDATA[<p>out schrieb:</p>
<blockquote>
<p>Was hat das mit CodeBlocks zu tun?</p>
</blockquote>
<p>Das hat nix mit CodeBlocks zu tun, sondern mit den Autovervollständigungsfeatures verschiedenster IDEs, darunter eben auch CodeBlocks.<br />
Wenn ich also ein &quot; oder ' eingebe (und ( und {), wird automatisch hinter den Cursor das zweite gesetzt.</p>
<p>Swordfish schrieb:</p>
<blockquote>
<p>Weiß auch ned, worauf er schon wieder is'. Aber in ein paar Stund' sollt der Spuk wieder vorbei sein ...</p>
</blockquote>
<p><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/2324634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2324634</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Mon, 20 May 2013 07:10:07 GMT</pubDate></item></channel></rss>