But actually my teacher hasn't taught me what is bool
Josue Molina wrote:
If he hasn't taught you what bool is, then how can you use if, while, for, etc.? Their functionality is based on Boolean values.
That is not quite right, not trying to be pedantic - just pointing out the difference. Conditional tests work on boolean logic, whereas bool is a particular type in C++. ANSI C never had boolean types, but there is plenty of boolean logic happening, same with any other language that has if , while etc.
i don't know this, but the programs run even without the bool function
The functions in Stewbond's code return a boolean type, they are not "bool functions".
Hope all is well.
Topic archived. No new replies allowed.
You are using a version without Ads of this website. Please, consider donating: