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
Type: Posts; User: mgravier
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
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...
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...
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...
int tile_data[16][21 * 21] --> row = tile number, column = pixel color. I am thinking of each tile as 21x21 pixels.
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 *...
Woops, do I need to always put return 0 at the end?
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.
could you elaborate a bit further on board being a parameter? would it simply be for (i = 1; i <= 15; i++)?
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...
thanks!
The macros getc() and putc() are used to read characters from the keyboard and to print characters on the screen, respectively.
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...
ah, great! thank you very much!
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
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...