|
From: Maya <Esc...@ne...> - 2003-11-04 03:20:42
|
Yes, I know exactly what you are talking about. C++ has already solved this problem with the use of locales and facets, but that is not related to Dev-cpp. However, there is a book that will help you, is called "Standard C++ IOStreams and Locales" isbn: 0-201-18395-1. I am right now working on a class called Money, it addresses problems like the one you are having. Let me know if you need any help, I would more than glad to help! zo...@ac... 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?? > > > -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |