// thus on Thu, 14 Aug 1997 12:31:35 -0500, Justin virtually wrote:
> I know this is a really stupid, easy mistake that I am just overlooking.
> But, I am overlooking it; would someone take a look at this and tell me
> where I made a dumb typo with their fresh eyes. Compiler is tell ing me
> there is a parse error before the void on line 845.
Get a good indent'er. GNU indent, or else program in emacs.
Match up braces.
> for (i = 0; i < 7; i++)
> {
> for (j = 0; j < 4; j++)
> rolls[j] = number(1, 6);
> temp = rolls[0] + rolls[1] + rolls[2] + rolls[3] -
> MIN(rolls[0], MIN(rolls[1], MIN(rolls[2], rolls[3])));
> for (k = 0; k < 7; k++)
> if (table[k] < temp)
> {
> temp ^= table[k];
> table[k] ^= temp;
> temp ^= table[k];
> }
> break;
> case RACE_MUTANT:
> case RACE_DRAGON:
See the missing brace?
Let me reindent it.
> for (i = 0; i < 7; i++)
> {
> for (j = 0; j < 4; j++)
> rolls[j] = number(1, 6);
> temp = rolls[0] + rolls[1] + rolls[2] + rolls[3] -
> MIN(rolls[0], MIN(rolls[1], MIN(rolls[2], rolls[3])));
> for (k = 0; k < 7; k++)
> if (table[k] < temp)
> {
> temp ^= table[k];
> table[k] ^= temp;
> temp ^= table[k];
> }
> break;
> case RACE_MUTANT:
> case RACE_DRAGON:
even if you're on a MS based machine, GNU indent can be found for it.
d.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST