Trending News
Promoted
Anonymous
Write the heading for a bool function Equals that has two value float parameters, x and y.?
This is c++ if you could write the function prototype it'd be much appreciated
Update:
Write the heading for a bool function Equals that has two value float parameters, x and y. With a body for the function that compares x and y, returning true if their
difference is less than 0.00000001, and false otherwise.
1 Answer
Relevance
- husoskiLv 73 years ago
bool Equals(float x, float y)
That's the function header. Follow it with a (;) semicolon and you have a function declaration ("prototype"), or follow it with a {} braced block and you have a function defintion.
Still have questions? Get your answers by asking now.