A
arunix
here is mine question aout the "functions" function return a value.
if we have parameterized function then we have to pass argument to the
function but i was learing from a website "/www.cplusplus.com/".
here is a function
bool IsOdd (int i) { return ((i%2)==1); }
and they used it in the count_if but with no arguments...
mycount = (int) count_if (myvector.begin(), myvector.end(), IsOdd);
its Grt Confusion......
if we have parameterized function then we have to pass argument to the
function but i was learing from a website "/www.cplusplus.com/".
here is a function
bool IsOdd (int i) { return ((i%2)==1); }
and they used it in the count_if but with no arguments...
mycount = (int) count_if (myvector.begin(), myvector.end(), IsOdd);
its Grt Confusion......