求解这段代码为何不能在VS中运行
#include <iostream>
#include <string>
using namespace std;
int main()
{
double money;
cin >> money;
int m;
m = (int)(money * 100);
string str1[] = { "分","角","元","拾","佰","仟","万","拾" };
string str2[] = { "零","壹","贰","叁","肆","伍","陆","柒","捌","玖" };
int group[8];
string money_CHN = "";
for (int i = 0; m > 0; i++)
{
group[i] = m % 10;
m = m / 10;
}
for (int i = 7; i >= 0; i--)
{
money_CHN = money_CHN + (str2[group[i]] + str1[i]);
}
cout << money_CHN << endl;
}
#include <string>
using namespace std;
int main()
{
double money;
cin >> money;
int m;
m = (int)(money * 100);
string str1[] = { "分","角","元","拾","佰","仟","万","拾" };
string str2[] = { "零","壹","贰","叁","肆","伍","陆","柒","捌","玖" };
int group[8];
string money_CHN = "";
for (int i = 0; m > 0; i++)
{
group[i] = m % 10;
m = m / 10;
}
for (int i = 7; i >= 0; i--)
{
money_CHN = money_CHN + (str2[group[i]] + str1[i]);
}
cout << money_CHN << endl;
}