I'm not sure why this doesn't work. I'm trying to make a function that passes in an integer and string and returns a string.
string convertThousands(int val, string roman)
{
piece = (val / THOUSANDS);
for (int i = 0; i < piece; i++)
{
roman += 'M';
}
val %= THOUSANDS;
return roman;
}
in my main function I would call it like below:
string roman;
roman = convertThousands;