|
-
September 14th, 2002, 11:49 AM
#1
# define MSG "bla.." where bla... is on 2 lines?
Hi,
Does anyone know how to do that or if it can be done? I want MSG to be a long paragraph.
# define MSG "bla bla bla bla
bla bla bla....."
Thank you!
-
September 14th, 2002, 12:13 PM
#2
Add a backslash for continuation. If it is a string, you can split the string over several lines
Code:
// lame example
#define tangent(x) \
sin(x) / \
cos(x)
// Remember to put a space after the "
#define PANGRAM \
"Xylophone wizard " \
"begets " \
"quick jive form"
Succinct is verbose for terse
-
September 14th, 2002, 12:38 PM
#3
Thank you! It works great 
Cat
Visual Basic 6 Learning Edition
-
September 14th, 2002, 02:08 PM
#4
Code:
const char* MSG = "Prefer using global constants to macro defines.";
Jeff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|