Hello, I’m making a project in C++ that I’ll be releasing in Christmas, but there’s a problem.
I don’t really know how to convert integers to strings. And this is strongly required in my project.
I know there’s the
to_string method, used like this:
int someInput; std::cout << "I need a name! "; std::cin >> someInput; std::to_string << "Hi, I'm " << someInput << "\n";
But that’s not really useful for me, as I need the input inputted first, and not outputed right away.