Thread
:
casting to string
View Single Post
DaWei
Team Leader
16Dec2006,09:30
Quote:
What is the difference?
You can construct a string-class string from a C-string directly, as in "string myString ("ABCDEFG");". To construct with a character, however, you must supply a length, as in "string myString (8, '\0');".