The only way I know is:
#include #include using namespace std; int main() { int number=33; stringstream strs; strs &l
This might be a bit late, but i also had the same issue. Converting to char was addressed in C++17 with the "charconv" library.
https://en.cppreference.com/w/cpp/utility/to_chars