P
pauldepstein
string word = 'a' ; is illegal code.
However, string word;
word = 'a';
is legal.
What is the difference? The 2nd one doesn't even generate a warning on
my bloodshed dev c++ compiler, set on maximum warning level.
I understand why the first example is illegal. But I'm surprised at
the legality of the second one.
(By the way, I'm not sure what to make of Red Floyd's earlier
read-the-FAQ message. Is anything wrong with any of my postings?)
Thank you,
Paul Epstein
However, string word;
word = 'a';
is legal.
What is the difference? The 2nd one doesn't even generate a warning on
my bloodshed dev c++ compiler, set on maximum warning level.
I understand why the first example is illegal. But I'm surprised at
the legality of the second one.
(By the way, I'm not sure what to make of Red Floyd's earlier
read-the-FAQ message. Is anything wrong with any of my postings?)
Thank you,
Paul Epstein