I am making a small vocabulary remembering program where words would would be flashed at me randomly for meanings. I want to use standard C++ library as Bjarne Stroustroup t
As suggested this may be an issue with your compiler version.
Try using the following code to convert a long to std::string:
long
std::string
#include #include #include int main() { std::ostringstream ss; long num = 123456; ss << num; std::cout << ss.str() << std::endl; }