如何解决"参数1:无法从'双精度'转换为'字符串'"?



我目前正在创建一个货币计数器应用程序,但是我在这一行有一个错误:MessageBox.Show(total);。有人能帮帮我吗?错误:Argument 1: cannot convert from 'double' to 'string'代码:https://www.toptal.com/developers/hastebin/remifuxisi

必须使用ToString()将双精度类型转换为字符串。

MessageBox.Show(total.ToString());

最新更新