How can I append data to a std::string in hex format?

前端 未结 3 902
时光说笑
时光说笑 2020-12-31 02:18

I have an existing std::string and an int. I\'d like to concatenate the ASCII (string literal) hexadecimal representation of the integer to the

3条回答
  •  悲哀的现实
    2020-12-31 02:31

    I believe 'string' only forward declares std::stringstream. So you also need to include:

    #include 
    

提交回复
热议问题