I have to modify a C++ project in Visual Studio 2005, but I don't have the necessary knowledge.
At some point in my code, I have a CString object called "text". After some operations, "text" is assigned a string that should be numeric, between [url removed, login to view] and 99,999.99.
Unfortunately, the string provider uses "." for both decimal and thousands delimiter, so I get strings like "10.000", which is read like "10.00", or "10.000.50", which completely fools my program.
Since decimals are always 2 or none, and thousands delimiter is at most 1, I want a small chunk of code that, given the variable text, will check if the character "." is followed by 3 digits (and in this case, remove it from text, or by 2 digits (in this case leave it where it is).
A very easy way to make $30 + feedback in 10 minutes, for anyone with a very basic C++ knowledge.
No more than $30 please... it's more than enough :)