/* FILE: strstream.cpp * authomatically generated with notangle starting from strstream.cnw * last change: 23-Apr-2001 * authors: Lorenzo Dematte` & Romeo Rizzi * This small program was meant to test the beaviour of streams of strings * and show the convenience of their use in other programs. * The program gives an handy way * to obtain the string description of generic numerical values * and exemplifyies the use of the strstream class. */ #include #include template string toString(genType n) { strstream ss; ss << n; return ss.str(); } int main() { string s_int = toString(44); cout << s_int <