<?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[Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code]]></title><description><![CDATA[<p>Hallo</p>
<p>ich habe gerade versucht PeerBlock (C++) mit Visual Studio 2012 zu kompilieren, da hagelte es aber einige Fehler, die ich nicht verstanden hatte.</p>
<p>Ich bin dann drauf gekommen, dass der Backslash, der dort zum Umbrechen längerer Zeilen verwendet wird, offenbar zum Fehler führt.<br />
Ich lese dort z.B. (in der iketypes.h, Zeile 367):</p>
<pre><code>#define IKEEXT_ERROR_CODE_COUNT  \

(ERROR_IPSEC_IKE_NEG_STATUS_END - ERROR_IPSEC_IKE_NEG_STATUS_BEGIN)
typedef struct IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0_
    {
</code></pre>
<p>Das gibt dann den Fehler &quot;Syntaxfehler Konstante&quot;, der Backslash wird nicht als Umbruchzeichen für die selbe Zeile erkannt.</p>
<p>Ist das vielleicht etwa erst ab VS 2013 bekannt?</p>
<p>Was hat es damit auf sich?</p>
<p>Ich konnte dann natürlich alle Backslashs die für diesen Zeilenumbruch missbraucht wurden, entfernen, dann ging es ja.</p>
<p>Danke für einen kurzen Hinweis an einen ewigen Anfänger <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>franc</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/327180/anfängerfrage-wg-zeilenumbruchzeichen-backslash-im-code</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 13:10:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/327180.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Jul 2014 14:28:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Sun, 27 Jul 2014 14:28:32 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ich habe gerade versucht PeerBlock (C++) mit Visual Studio 2012 zu kompilieren, da hagelte es aber einige Fehler, die ich nicht verstanden hatte.</p>
<p>Ich bin dann drauf gekommen, dass der Backslash, der dort zum Umbrechen längerer Zeilen verwendet wird, offenbar zum Fehler führt.<br />
Ich lese dort z.B. (in der iketypes.h, Zeile 367):</p>
<pre><code>#define IKEEXT_ERROR_CODE_COUNT  \

(ERROR_IPSEC_IKE_NEG_STATUS_END - ERROR_IPSEC_IKE_NEG_STATUS_BEGIN)
typedef struct IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0_
    {
</code></pre>
<p>Das gibt dann den Fehler &quot;Syntaxfehler Konstante&quot;, der Backslash wird nicht als Umbruchzeichen für die selbe Zeile erkannt.</p>
<p>Ist das vielleicht etwa erst ab VS 2013 bekannt?</p>
<p>Was hat es damit auf sich?</p>
<p>Ich konnte dann natürlich alle Backslashs die für diesen Zeilenumbruch missbraucht wurden, entfernen, dann ging es ja.</p>
<p>Danke für einen kurzen Hinweis an einen ewigen Anfänger <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>franc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410695</guid><dc:creator><![CDATA[franc]]></dc:creator><pubDate>Sun, 27 Jul 2014 14:28:32 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Sun, 27 Jul 2014 14:38:46 GMT]]></title><description><![CDATA[<p>\ geht nur in Makros und zieht nur doe folgende Zeile ran.</p>
<p>Also hier nur die Leerzeile nach dem #define. Denke, die muss weg und alles wird gut.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410697</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 27 Jul 2014 14:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 08:41:39 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u100590" rel="nofollow">Martin Richter</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f1" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (auch C++0x und C++11)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410783</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410783</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 28 Jul 2014 08:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 17:23:25 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>\ geht nur in Makros und zieht nur doe folgende Zeile ran.</p>
</blockquote>
<p>Auch wenn wir uns sicher alle einig sind, dass es nur in Makros wirklich Sinn macht, finde ich eine bewusste Falschdarstellung nicht gut. Natürlich funktioniert das überall:</p>
<pre><code>#include &lt;ios\
tream&gt;
using nam\
espace std;

int ma\
in() {
	// your code goes here
	retu\
rn 0;
}
</code></pre>
<p>Man sieht, wieso man das bestenfalls in Ausnahmefällen braucht. Ein solch konstruierter Ausnahmefall wäre ein striktes Zeilenlängenlimit in den Codinggstyles in Kombination mit hoher Einrückungstiefe und langen Bezeichnern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410874</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 28 Jul 2014 17:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 21:33:25 GMT]]></title><description><![CDATA[<p>Danke. Komisch, dass wenn als Kompilierung die &quot;Vista 64&quot; Variante gewählt wird, gibt es nur diese Probleme, in der &quot;normalen&quot; Kompilierung (ohne &quot;Vista&quot;) kompiliert das fehlerfrei durch.</p>
<p>Vielleicht irgendwelche Bedinungen, die an diese Vista64 Kompilierung geknüpft sind, die dann diesen Backslash mit zwei Zeilenumbrüchen nicht mehr akzeptieren?</p>
<p>Keine Ahnung..</p>
<p>Es geht auf jeden Fall, nachdem ich die paar Backslachs alle ganz weg gemacht hatte, die brauchts auch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410919</guid><dc:creator><![CDATA[franc]]></dc:creator><pubDate>Mon, 28 Jul 2014 21:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 21:44:40 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Natürlich funktioniert das überall:</p>
</blockquote>
<p>Es funktioniert sogar bei &quot;//&quot;-Kommentaren, das wäre noch eine schöne Demonstration gewesen.</p>
<p>Aber es funktioniert nicht <strong>überall</strong>:</p>
<pre><code class="language-cpp">std::cout &lt;&lt; R&quot;(a\                                                            
b)&quot;;
</code></pre>
<p>printed</p>
<pre><code>a\
b
</code></pre>
<p>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410921</guid><dc:creator><![CDATA[forall x in C++]]></dc:creator><pubDate>Mon, 28 Jul 2014 21:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 21:58:32 GMT]]></title><description><![CDATA[<p>forall x in C++ schrieb:</p>
<blockquote>
<p>Aber es funktioniert nicht <strong>überall</strong>:</p>
<pre><code class="language-cpp">std::cout &lt;&lt; R&quot;(a\                                                            
b)&quot;;
</code></pre>
<p>printed</p>
<pre><code>a\
b
</code></pre>
<p>.</p>
</blockquote>
<p>Das ist wirklich mal ein obskures, aber schönes, Gegenbeispiel <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410926</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 28 Jul 2014 21:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 22:33:09 GMT]]></title><description><![CDATA[<p>Auch bemerkenswert:</p>
<pre><code>\u\
0000
</code></pre>
<p>Erzeugt undefiniertes Verhalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410930</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Mon, 28 Jul 2014 22:33:09 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Mon, 28 Jul 2014 22:38:48 GMT]]></title><description><![CDATA[<p>Arcoth schrieb:</p>
<blockquote>
<p>Auch bemerkenswert:</p>
<pre><code>\u\
0000
</code></pre>
<p>Erzeugt undefiniertes Verhalten.</p>
</blockquote>
<p>Du meinst, das Programm ist &quot;ill formed&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410932</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 28 Jul 2014 22:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage wg. Zeilenumbruchzeichen (Backslash) im Code on Tue, 29 Jul 2014 08:05:27 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Du meinst, das Programm ist &quot;ill formed&quot;?</p>
</blockquote>
<p>Nein. Beachte aber</p>
<p>§3.2.24 schrieb:</p>
<blockquote>
<p>Permissible undefined behavior ranges from ignoring the situation completely with unpredictable results, <strong>to behaving during translation</strong> or program execution <strong>in a documented manner characteristic of the environment</strong> (<strong>with or without the issuance of a diagnostic message</strong>), <strong>to terminating a translation</strong> or execution (<strong>with the issuance of a diagnostic message</strong>).</p>
</blockquote>
<p>Die Implementierung kann es also als ill-formed behandeln, es aber auch ignorieren. Der Standard schreibt das Verhalten des generierten Programms nicht vor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2410968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2410968</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Tue, 29 Jul 2014 08:05:27 GMT</pubDate></item></channel></rss>