I looked into bitset and search google for information
on them but i couldnt find anything good, does
anyone have an information relating to there use,
that comes with example code.
What im looking to do, and if it can be done without
bitset im open to it to, i want to beable to
set a variable equal by using the binary equivalent.
Ex:
and then how to display it in console such asCode:???? myByte = 01100001;
which would display 'a' if i choose to display as a characterCode:cout << myByte << endl;
or display '97' if i choose to display as a number?
Using bitset i saw the set() function, but that seems like i have to
go in and change a bunch of individual bits? For this id like
to just start with them set where id like them to be.
If bitset the only way, to do this well, then hwo do i display
the bitset as a char or int?
If anyone could help thanks.
P.S.
I looked into prelude bit manipulation in the FAQ, but
its not what im looking for.