🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6214

Re: basic C question...

#6214
From: Heinrich Wolf
Date: Thu, 02 Jun 2005 21:41
20 lines
1472 bytes
...
> I think a single backslash will be a alternative.
> It tells the preprocessor to go to next line.
>
> AnsiString MyString = "This is a very long string. So, \
> I'd prefer to make it on seperate \
> lines like this so that I can read \
> it in my code without having to use \
> the scrollbars across the bottom of \
> the screen.";
...
The disadvantage of using the backslash is, that you cannot indent the 
following lines.

The backslash here is used as the escape character which invalidates the 
invisibly following newline character. The escape character is also used in 
"C:\\ntldr" or in "You ask: \"Why?\"".

Regards
Heiner 
Technical Details
Message-ID: <3g9cnnFbb3gbU1@individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <429f0f35@newsgroups.borland.com> <429f5624$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cf4e0320941265bb
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: "Heinrich Wolf" <invalid@invalid.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: basic C question...
Date: Thu, 2 Jun 2005 23:41:11 +0200
Lines: 22
Message-ID: <3g9cnnFbb3gbU1@individual.net>
References: <429f0f35@newsgroups.borland.com> <429f5624$2@newsgroups.borland.com>
X-Trace: individual.net AB5mZeBjwCkyzvbmaLWTAwzTUCvzTuYa6JI4na+quZhewVJnrI
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response