I see this in the guidelines of my assignment. It is rather confusing.
Beside the use of string function, what is the point of converting the content of a character array into string?Code:char arr[10];
cin.getline(arr,10);
string str(arr);
Why use character array?Why not just define a string?
