Unexpect results using tone()

Built-in operators like != are guaranteed to return either true or false in C++ (they return a bool value).

On the other hand, some "truthy" functions like isalpha() are only guaranteed to return 0 or non-zero. (But if you store such a return value in a bool variable, you'll get false or true.)

That's the thing, it's all bits to me. I started getting paid to write basic in 1980 when the shop got computers. Before that I used TI programmable calculators to generate coordinates for the turret punch. I didn't get paid for punching Fortran into cards in 75.

If you ever wrote Forth, that is the language that changed my life.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.