From: Keith Thompson on
John Gordon <gordon(a)> writes:
> In <4bd602ef$0$12421$bbae4d71(a)> "Bill Cunningham" <nospam(a)nspam.invalid> writes:
>> const char *msg("hello world\n");
> That's not how to declare a string constant. Try this instead:
> const char *msg = "hello world\n";

Both declarations are valid in C++; only the second is valid in C.

(And he needs #include <stdlib.h> for exit().)

Keith Thompson (The_Other_Keith) kst-u(a) <>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"