Article View: borland.public.cppbuilder.nativeapi
Article #6217Re: basic C question...
From: Ed Mulroy [TeamB]
Date: Fri, 03 Jun 2005 03:15
Date: Fri, 03 Jun 2005 03:15
41 lines
2509 bytes
2509 bytes
There are two ways:
The old, original way from the early 80's:
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.";
and the way which came along later:
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.";
Both methods of indicating a string which bridges multiple lines are legal
in both of C and C++. (Of course, even though you call this "basic C
question", AnsiString is not C.)
. Ed
> Robert G. Hoover wrote in message
> news:429f0f35@newsgroups.borland.com...
> Isn't there a way to "continue" a string that exceeds the 80 column
> "readability barrier"? For example....
>
>
> 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.";
>
> I thought there was a special character what would allow the compiler to
> interpret this as a single line?
Technical Details
Message-ID:
<429fcb52@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<429f0f35@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 From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <429f0f35@newsgroups.borland.com> Subject: Re: basic C question... Date: Thu, 2 Jun 2005 23:15:32 -0400 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 12.161.27.66 Message-ID: <429fcb52@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117768530 12.161.27.66 (2 Jun 2005 20:15:30 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail