Hi all,
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.
Enjoy
0
Newbie Poster
Recommended Answers
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
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.