Convert ASCII code to equivalent numerical value
- Posted by alrobnett Jan 15, 2019
- 1113 views
given:
integer key
key = wait_key
If the key pressed is 1, then the value in key = 49.
I need a value of 1.
I could say:
key -= 48
Is there a more sanitary way?