Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type bool [7/9]

The isPressed function returns a value of type bool.

Single quotation marks (') can be used instead of double quotation marks (") to delimit strings.

After running and examining the program, make it print out the string The key "Escape" was pressed at the end of execution. Run the new program, and then use the Escape key to end it.

After that, modify the program so that it also outputs a string The function 'isPressed' returns a value of type 'bool' at the end of execution.

Loading...