I have written an Othello game program that you play in the console but it will not let you make a move in the bottom row of the board. The program crashes. I've looked and looked for hours and can't...
Type: Posts; User: goat37
I have written an Othello game program that you play in the console but it will not let you make a move in the bottom row of the board. The program crashes. I've looked and looked for hours and can't...
Thanks, I made the adjustment and it's working great.
Sorry, forgot to add comments. I can't figure out why this code keeps printing out the first structure in the array even though the for loop in the "PrintAGrue" function cycles ok.
#include <stdio.h>
#include <stddef.h>
typedef struct
{
char name[50];
float weight;
float height;
int eaten;
}Grue;
I have to add the item through a function and I forgot to say that the list it being written to a text file.
I am using the fputs function to create a list, but all of the items in the list are on the same line. Any idea how to get the fputs function to put in a carriage return?
I am trying to get this code set up to calculate a factorial. I think I am close, just can't get my head around the process to the factorial.
#include <stdio.h>
void Recurse (int);
int...