数据类型转换

sun*_*tch 4 c++ type-conversion

有没有在C++中的任何功能,将所有的数据类型(double,int,short等),以string

Tre*_*edd 8

通常,您将使用<<运算符,并结合(例如)std :: stringstream.