Tuesday, 3 September 2013

My function wont compile properly

My function wont compile properly

I'm getting the following error when trying to compile the following
function:
Error: invalid operands of types int and const char [3] to binary operator
How do I fix this?
string getFormattedDate()
{
formattedDate = Date.getDay() << "/" << Date.getMonth() << "/" <<
Date.getYear();
return formattedDate;
}

No comments:

Post a Comment