This doesnt work as it should...
void renameMonths(string month)
{
if (month == "jan")
{
month = "january";
}
}
int main()
{
string month;
month = "jan";
renameMonths(month);
cout << month << endl;
}
the output is just jan, when it should be january.
Thanks in advance.