to_string is not a member of std, says g++ (mingw)

前端 未结 13 1402
不思量自难忘°
不思量自难忘° 2020-11-22 05:41

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

13条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 05:57

    to_string() is only present in c++11 so if c++ version is less use some alternate methods such as sprintf or ostringstream

提交回复
热议问题