Search:

Type: Posts; User: soonerfan

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    834

    help with code

    Please help! I have this, can it be shortened at all? Plus, when it prints out, it prints out the entered data in reverse order, such as 4567 is entered, and 7654 is printed after the bits are...
  2. Replies
    1
    Views
    5,743

    packing and unpacking bits

    I've been reading on how you can compress the actual bits in a program. Below is my code. I've pieced it together, but all that I'm getting is the full 8 bits. My output reads like:

    abcd=...
  3. Replies
    3
    Views
    1,133

    for Question C; What I'm actually wanting to...

    for Question C;

    What I'm actually wanting to do is to ask the user for some numbers, doesn't matter how many, then after they enter them, it will give the output of the binary representation of...
  4. Replies
    3
    Views
    1,133

    help with packing

    I've been reading on how you can compress the actual bits in a program. Below is my code. I've pieced it together, but all that I'm getting is the full 8 bits. My output reads like:

    abcd=...
  5. Replies
    2
    Views
    4,485

    Simplified code

    Hello;

    I have this code that will give me the next day based upon what the user has entered for day, month and year, and checks for leap year. As you can see, the code is quite lenghty. I was...
  6. Replies
    0
    Views
    1,218

    pack and unpack

    I've been reading on how you can compress the actual bits in a program. Below is my code. I've pieced it together, but all that I'm getting is the full 8 bits. My output reads like:

    abcd=...
  7. Replies
    5
    Views
    1,175

    Yeah, that's the start of how I needed it...

    Yeah, that's the start of how I needed it printed. But that is printing the current and previous month only. Underneath the first line of months, I was wanting it to list in order from that point...
  8. Replies
    5
    Views
    1,175

    e

    Stoned;

    I inserted the code into the main body of the program, overwriting mine, then ran it, and I got the same result. The output looks like:

    Current Previous
    August ...
  9. Replies
    5
    Views
    1,175

    enum and arrays

    Here is the code I have. It prints out the current month and previous month in the correct column. Where would I go to make it print out rest of the months underneath them in order? Thanks!!

    ...
  10. Replies
    6
    Views
    1,260

    whoops

    Yeah, i knew that, it was a stupid typo.....makes me really look like a rookie huh?

    anyway, as far as the entire output of every month, would I be able to use it that way? I mean, it prints out...
  11. Replies
    6
    Views
    1,260

    enumeration types

    Salem;

    Thanks alot! That was a tremendous help. So the array did work. To get it to print the rest of the months under the top two, I could put in a FOR loop correct? Like:
    ...
  12. Replies
    6
    Views
    1,260

    enumeration types

    I'm thinking on that code that I could use an array or something like that. I was also possibly thinking that I could use an IF statement, something like:

    if(d1==d2)
    printf("xxxxx");
    else...
  13. Replies
    6
    Views
    1,260

    enumeration types

    I am a struggling toyer with C and I've worked my way up to enumeration types and typedef and now I'm stuck. here is my code:

    #include<stdio.h>

    enum month{jan=1, feb, mar, apr, may, jun, jul,...
Results 1 to 13 of 13