answersLogoWhite

0

Use a std::vector<std::string>> to store the strings, then call the std::vector::sort() method.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

When one dimensional character array of unspecified length is assigned an initial value?

string[] str= new string[2]{"ss","gg"} for(int i=0;i&lt;str.length;i++) { Response.wrirte(str[i]); }


Difference between character and string?

A string ends with a '\0' character,but character is not.


Which character in string is used to end the string?

Character zero (the byte with the decimal value zero) is sometimes used to end a string. But in other cases, the size of the string is stored at the beginning of the string, and there is no end-of-string character. This allows any character to be included in the string.


How do you convert a character into a string?

A string is, by definition, a character array. No conversion is required.


How do you convert a string into a character array?

A string is, by definition, a character array. No conversion is required.


Is string an object?

No. A string is, by definition, a character array.


Is string is an object?

No. A string is, by definition, a character array.


What String of what?

An array of strings is usually implemented as an array of character pointers. Each pointer refers to a a null-terminated character array, and can be treated just as if it were a two-dimensional array where the length of each "row" is not fixed length (the null terminator marks the end of each row). The array of character pointers must be allocated in contiguous memory (as must all one-dimensional arrays), however the character arrays they point to need not be allocated contiguously with each other (only the individual one-dimensional character arrays must be contiguous).


What is array of string?

An array of strings is usually implemented as an array of character pointers. Each pointer refers to a a null-terminated character array, and can be treated just as if it were a two-dimensional array where the length of each "row" is not fixed length (the null terminator marks the end of each row). The array of character pointers must be allocated in contiguous memory (as must all one-dimensional arrays), however the character arrays they point to need not be allocated contiguously with each other (only the individual one-dimensional character arrays must be contiguous).


What is the difference between A and A in string?

Well, A is an identifier; 'A' is a character-literal; "A" is a string literal (of 1 character); "'A'" is another string literal (of 3 characters).


A character array terminated with the null character is most correctly called what?

zero-terminated string


(variable) = a(not a string!)?

Character