hi i need to create to overload function i have the code done but do not know how to make them overload function. please help. your help would be much appreciate it.
int main()
{
const int size = 500;
char user[size];
cout << "Enter at least two sentences, but do not use capital letters.(C-string)\n";
cin.getline(user, size);
cout << "\nHere are your sentences with beginning words capitalized:\n";
cout << CapUp(user);
cout << endl << endl;
string makeCap;
cout << "\nEnter at least two sentences, but do not use capital letters.(string object)\n";
getline(cin, makeCap);
cout << "\nHere are your sentences with beginning words capitalized:\n";
CapUp(makeCap);
cout << makeCap;
}
char *CapUp(char *sentence)
{
int length = strlen(sentence);
int i, j;