Search:

Type: Posts; User: bpf

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,174

    c programming / binary question

    is there a simple way to declare a line of zeros and ones as binary code in c? i have written a program that converts integers to binary code but it is a character string. i am trying to write a...
  2. actually after looking at the loop, i wasn't...

    actually after looking at the loop, i wasn't paying attention to what it was doing. i had it reading the string from left to right which isn't correct obviously

    got it working, thanks!
  3. need help debugging a program that converts integer to binary

    i wrote a program that was supposed to run a function that makes a conversion of inter digits to binary

    when i try to compile the program, the following errors come up:

    int_to_bin.c:33: error:...
  4. until the remainder goes to 1 or zero so the...

    until the remainder goes to 1 or zero

    so the for loop will find the highest multiple of two and subtract it from the remainder until it reaches the 'one's' spot
  5. need help debugging a program counting bits set from an integer number

    The program is supposed to count the number of bits set by an integer. for example: 5 is 00000101 and has two bits set. compiling the program with debug statements makes me think that the program...
  6. what do i need to put in this to make a...

    what do i need to put in this to make a prototype. i thought that the declaration of a function was were the parameters were defined. like: function( parameter1, parameter2, .....)
  7. need help debugging a program w/ counting function

    i am trying to write a program that counts the number of times that a character appears in an array

    the code reads:


    /********************************************************
    * *
    *...
Results 1 to 7 of 7