I have seen this in the book "C++ for Dummies".
I dont understand: its a pointer of type char. So how is this becoming a string?Code:// declare a string char* szString = "Randy"; cout << "The array is "'" << szString << "'" << endl;
I have seen this in the book "C++ for Dummies".
I dont understand: its a pointer of type char. So how is this becoming a string?Code:// declare a string char* szString = "Randy"; cout << "The array is "'" << szString << "'" << endl;