That worked great, thanks a lot guys, i think im understanding this whole bitwise thing a little better now.
Type: Posts; User: black_watch
That worked great, thanks a lot guys, i think im understanding this whole bitwise thing a little better now.
But for joining them back together as one int would i have too loop around each individual bit, for both of the seperate numbers, comparing them against a 16 bit 0 number?
I know it will always be exactly 16 bits as i put the data in as 16 bits, thanks a lot for your help, anding a binary number with that mask only checks the first 8 digits and then set the rest to 0?...
in that case will number2 the one that contains the least significant bits always contain 1111 1111?
i obtained the left side of the 16 digit binary number by doing the following
int value2 =...
using bitwise operations how could i split a 16 digit binary number into two seperate 8 digit binary numbers?
buffer[n] |= BinNumber << i;
where buffer[n] is a binary version of a text file.
This line of code seemed to do the trick, i do get some problems though, ocassionally when writing the binary...
nah, the other way around, i have a binary value, which is the binary of a text file, i would like to pop this into an unsigned char array, im then going to output the results as a text file.
but how would i go about changing 8 individual binary bits into a combined 8 bit char ?
I am trying to use bitwise operators to fill a unsigned char with data. the data i want to put in is the binary number 0 0 0 1 0 1 1 1
However the data comes in backwards so when reading the data i...
thanks for your replies everyone i figured it'd be a simple cin with an array or with loops or something but the instruction is worded like this:
•Check for invalid entries such as the length of...
Hi everyone this is my first post, please be nice :p :)
so i am writing a paintball booking program as a project i am doing allright but i have to check for invalid date entries in my input by...