cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
comparing unsigned char to hex value
comparing unsigned char to hex value
Mar 23, 2011 at 5:14am UTC
matthewfs
(36)
I want to compare a unsigned char that has the hex value: 0x01 to 0x01. How would i do that? Tried googling with no success.
Last edited on
Mar 23, 2011 at 5:15am UTC
Mar 23, 2011 at 5:47am UTC
hamsterman
(4538)
1
2
unsigned
char
c = 0x01;
if
(c == 0x01) cout <<
"yay"
;
Topic archived. No new replies allowed.