if i have information that is coming from a function
such as a cout << "InFO"
and i want to just display that as another function.
(I.E. instead of having the cout , i want to just put the function ther einstead...and hav ethe function read my cout...how would i go about doing that..
else if (index != NOT_FOUND)
{
UpdateCounter (list.counters[index], count, weight);
cout << "Counter " << name << " updated with " << count;
cout << " packages " << "weighing " << weight ;
cout << " lbs." << endl;
for example...i would replace all the cout with a function
my coding is not right i dont think...any suggestions