I was thinking what the best way would be to convert a integer array, for example
int array[] = {0x53,0x74,0x61,0x63,0x6B,0x4F,0x76,0x65,0x72,0x66,0x6C,0x6F,0x77,0x00}
to a string, the above integer array is the equivalent of:
int array[] = {'S','t','a','c','k','O','v','e','r','f','l','o','w',0}
so a resulting string would be
std::string so("StackOverflow");
I was thinking of looping through eacht element with foreach and adding it to the string by casting it to char, but I'm wondering if there are cleaner / faster / neater ways to do this?
char array[], notint array[].