Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cout hex value

//you can use std::hex to change the format of cout
//don't forget the std::dec at the end to get the cout back to normal
int a = 255;
std::cout << std::hex << a << std::dec << '
';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cout #hex
ADD COMMENT
Topic
Name
7+3 =