Article View: borland.public.cppbuilder.nativeapi
Article #6208Re: basic C question...
From: Remy Lebeau (TeamB)
Date: Thu, 02 Jun 2005 17:10
Date: Thu, 02 Jun 2005 17:10
17 lines
1643 bytes
1643 bytes
"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote in message news:429f0f35@newsgroups.borland.com... > Isn't there a way to "continue" a string that exceeds the 80 > column "readability barrier"? Others have shown you how to code it, but they did not explain what it is actually doing. As per the C++ standard, when two string literals are next to each other, with only white space (including line breaks) separating them and nothing else, the compiler automatically concatenates them together into a single literal. So, in your example, you have 6 lines that, when each are surrounded by their own quotations, become 6 string literals, which then are concatenated into a single larger literal during compiling. Gambit
Technical Details
Message-ID:
<429f3d6a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <429f0f35@newsgroups.borland.com> Subject: Re: basic C question... Date: Thu, 2 Jun 2005 10:10:23 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <429f3d6a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117732202 68.69.17.41 (2 Jun 2005 10:10:02 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail