In graphics mode, I need to read hexadecimal value from a file and assign it to variable for which i can add other value later.
Eg : I need to read value 1007(hexadecimal) from a file and assign it to a variable.
Later when i add 3 to the stored hexadecimal value i need to get 100A and i need to print this value.
Jump to Post
>I need to read value 1007(hexadecimal) from a file and assign it to a variable.
Use the std::hex manipulator (it's in the <ios> header):
in>> std::hex >> value;
>and i need to print this value.
You mentioned graphics mode, so you probably need to convert the value …
All 2 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.