|
From: Per W. <pw...@ia...> - 2003-11-04 01:02:41
|
For most modern c/c++ libraries it should be enough to change locale (setlocale in ANSI/POSIX) before using the input/output functions. The normal C locale is hard-coded to a dot as decimal separator. /Per W On Mon, 3 Nov 2003, Zodiaq wrote: > Hello all Dev-cpp-users, > > is there a way to force treting , in numbers as . ?? In Poland there is a > strange habit of writing numbers this way: > number,fraction 13,75 > no usual: > number.fraction 13.75 > > using ifstream extraction loses fraction value... there is way to read line, > and replace each , with . then use istringstream on in and at last use > normal extraction... lot of work - maybe there is other simplier way?? > > -- > regards Zodiaq > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |