I have a long array of ints that need to be converted to string. The array is about 1000 – 10000 ints long and value of all of those ints is between 0-9. Is there any fast and effective STANDARD way to convert whole int array to string? It really has to be done only using standard libraries. Thanks.
Share
std::stringor Cstring?Anyway for one character, the conversion is:
char c = array[i]+'0';Extended that over entire array and you are done.