如何使用C ++将特定于语言环境的货币字符串转换回数字? [英] How to convert locale-specific currency string back to number with C++?

查看:115
本文介绍了如何使用C ++将特定于语言环境的货币字符串转换回数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将语言环境格式的货币字符串转换回其原始数字.例如,$ 123,456.99-> 123456.99.

我知道您可以使用Win32函数GetCurrencyFormat通过区域设置将数字转换为货币字符串.但是,有一种简单的方法可以将货币字符串转换回其原始数字吗?我正在使用Win32 API和Visual C ++.

I know you can use Win32 function GetCurrencyFormat to convert a number to currency string by locale. But is there an easy way to convert back from currency string to its original number? I am using Win32 API and Visual C++.

有人可以帮忙吗?

推荐答案

不幸的是,这没有什么:-(

Unfortunately there is nothing for this :-(


这篇关于如何使用C ++将特定于语言环境的货币字符串转换回数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆