Search:

Type: Posts; User: black_watch

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    3,862

    That worked great, thanks a lot guys, i think im...

    That worked great, thanks a lot guys, i think im understanding this whole bitwise thing a little better now.
  2. Replies
    9
    Views
    3,862

    But for joining them back together as one int...

    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?
  3. Replies
    9
    Views
    3,862

    I know it will always be exactly 16 bits as i put...

    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?...
  4. Replies
    9
    Views
    3,862

    in that case will number2 the one that contains...

    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 =...
  5. Replies
    9
    Views
    3,862

    bitwise operations

    using bitwise operations how could i split a 16 digit binary number into two seperate 8 digit binary numbers?
  6. Replies
    7
    Views
    1,643

    buffer[n] |= BinNumber

    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...
  7. Replies
    7
    Views
    1,643

    nah, the other way around, i have a binary value,...

    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.
  8. Replies
    7
    Views
    1,643

    but how would i go about changing 8 individual...

    but how would i go about changing 8 individual binary bits into a combined 8 bit char ?
  9. Replies
    7
    Views
    1,643

    bitwise operations

    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...
  10. Replies
    3
    Views
    841

    thanks for your replies everyone i figured it'd...

    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...
  11. Replies
    3
    Views
    841

    problems with date entry

    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...
Results 1 to 11 of 11