Check out example codes for "how to turn int into string c++". It will help you in understanding the concepts better.

Code Example 1

#include <string> 

std::string s = std::to_string(42);

Code Example 2

std::to_string(23213.123)

Code Example 3

int a = 10;
char *intStr = itoa(a);
string str = string(intStr);

Learn ReactJs, React Native from akashmittal.com