i have very little exposure in c++,pl dont neglect my question.
i need a generic function which accepts any primitive datatype and converts it into a string(STL) .
eg: string convString(<type eg:double,long,> value)
i have used _fcvt() for double to string(char *,which i converted later), but i found "." is missing in the string.
and i also need a function which will find the length of primitive datatypes not sizeof(type);
eg: double d = 1234.25
int size = mySize(1234.25);
size should contain a value 7(includes ".", if it has);