function

how to make decision using function
Please elaborate.
Please elaborate.

^ This. ^

how to make decision using function

This is ambiguous. You probably won't get much help unless you clarify.

Do you mean...

"How do I create a function that uses decisions I make?",
"How do I use an arbitrary function in the process of decision making?",
"How do I create a function that helps in the process of decision making?"

or something else entirely?

A concrete example would help too.
Last edited on
closed account (18hRX9L8)
1
2
3
4
5
6
7
8
9
10
#include <iostream>
bool descision(bool _)
{
	return _+true;
}
int main(void)
{
	bool mydescision=true;
	std::cout<<std::boolalpha<<descision(mydescision);
}
What the point of function which always return true?
closed account (18hRX9L8)
MiiNiPaa wrote:
What the point of function which always return true?

It was supposed to be an example... Or, never say never!!! ;]
Last edited on
Topic archived. No new replies allowed.