I run ubuntu and I compile in the terminal using gcc.
Type: Posts; User: grizzle
I run ubuntu and I compile in the terminal using gcc.
I caught the "d+cols" mistake as soon as I took a look at that line alone (somehow that always helps). Also, how do you enable warnings? or check?
Ha! I actually missed that until after I'd done several rewrites of the code and just left it that way because... laziness.
The formatting issues are my bad. I do that for my own ease of viewing while working. The latest code...
#include <stdlib.h>
#include <stdio.h>
/*
**Assumes that each player has no more...
My latest code that produces a segmentation error:
#include <stdlib.h>
#include <stdio.h>
/*
**Assumes that each player has no more than 10
moves each and that NO player is indifferent to...
Both are good catches, but neither seems to fix the problem. Thanks for your help, though.
This the code I have post-revision:
#include <stdlib.h>
#include <stdio.h>
/*
**Assumes that each player has no more than 10
moves each and that NO player is indifferent to
the other...
I bow to your superiority.
Thanks for your help, I've been writing and rewriting code for this project for so long that it has almost all blurred together. To make it worse, I'm sick as a dog,...
I don't get it. It just doesn't print anything!
Thanks so much! I really appreciate the help!
Unfortunately, this code also doesn't print when I compile and run it.
Hi,
I'm kind of new at this, but I've looked at the code over and over and can't figure out my problem.
Code:
#include <stdlib.h>
#include <stdio.h>