Search:

Type: Posts; User: mgravier

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,027

    little to big endian

    Hi,

    I am trying to read in a file that is written in little Endian and convert it to big Endian. How do I do this?


    Thanks
  2. Replies
    1
    Views
    1,714

    Help fixing for loop

    Hi,

    I am just learning C, so I am sorry if my questions are trivial. I'm basically programming the "15-puzzle" which looks like this: File:15-puzzle.svg - Wikipedia, the free encyclopedia

    So...
  3. great, thanks! how about color, tile_index,...

    great, thanks! how about color, tile_index, digit1, and digit2? do I put those as parameters as well? Also, what would go inside the for loop (how do I calculate the color for each tile)? I have...
  4. help writing pseudocode into code for C puzzle

    Hi,

    I am just learning how to program in C, so please bear with me if I'm asking really trivial questions. I'm basically writing code for a puzzle known as the 15-puzzle. The board itself is...
  5. int tile_data[16][21 * 21] --> row = tile number,...

    int tile_data[16][21 * 21] --> row = tile number, column = pixel color. I am thinking of each tile as 21x21 pixels.
  6. It compiled but the only error message that I...

    It compiled but the only error message that I received was in the very beginning of my code. It says "overflow in constant expression" a lot earlier in my code in this line

    int tile_data[16][21 *...
  7. Woops, do I need to always put return 0 at the...

    Woops, do I need to always put return 0 at the end?
  8. void initialize_board(int board[]){ int i;...

    void initialize_board(int board[]){
    int i;
    for (i = 0; i < 16; i++) {
    board[tile] = tile;
    }
    }

    Thanks! I did the above and I think this should work out.
  9. could you elaborate a bit further on board being...

    could you elaborate a bit further on board being a parameter? would it simply be for (i = 1; i <= 15; i++)?
  10. Guidance needed for global array initialization

    Hi,

    I am just learning how to program in C, so please bear with me if I'm asking really trivial questions. I'm basically writing code for a puzzle known as the 15-puzzle. The board itself is...
  11. Replies
    5
    Views
    964

    thanks!

    thanks!
  12. Replies
    5
    Views
    964

    The macros getc() and putc() are used to read...

    The macros getc() and putc() are used to read characters from the keyboard and to print characters on the screen, respectively.
  13. Replies
    5
    Views
    964

    Code not functioning properly

    I just started learning C, so please bear with my if my code is not all that great! So I am basically trying to print out "Start Typing >" utilizing lc4_puts(). Then I am trying to fall into a loop...
  14. Replies
    4
    Views
    2,534

    ah, great! thank you very much!

    ah, great! thank you very much!
  15. Replies
    4
    Views
    2,534

    awesome!! thank you so much! i am also getting an...

    awesome!! thank you so much! i am also getting an error saying that 'lc4_puts' is expected a ';' but i already have a semicolon. i don't know what it's referring to
  16. Replies
    4
    Views
    2,534

    help with code

    I just started learning C, so please bear with my if my code is not all that great! So I am basically trying to print out "Start Typing >" utilizing lc4_puts(). Then I am trying to fall into a loop...
Results 1 to 16 of 16