I'm not sure I understand what you want to do...
Do you want a function that has the couts inside it?
like this?-
Code:
MyPrintFunction(name, count, weight)
{
cout << "Counter " << name << " updated with " << count;
cout << " packages " << "weighing " << weight ;
cout << " lbs." << endl;
}
You should be able to do this after reading the Function Tutorial.
You also need to understand how to pass a pointer-to-a-string into a function (I assume that name is a pointer to character array (AKA a C-style string).
Don't forget to include:
The function prototype
The function definition
One or more function calls