c++ Type Conversions Rehash
Another popular way to write this function is by using templates.
sstream
iomanip
string
template <typename T>This should be put in a header file and needs the following:
string toString(T& i) {
ostringstream oss;
oss << fixed << i;
return oss.str();
}
sstream
iomanip
string
0 Comments:
Post a Comment
<< Home