Re: [CODE] Two lines trying to define a character

From: Nicholas Finco (nfinco@MONTANA.CAMPUS.MCI.NET)
Date: 12/17/97


Right after
     FILE *f;
put a
     char location[20];
then in the switch, change the statements to:
     strcpy(location, "text/motd\0");
and
     strcpy(location, "text/imotd\0");
That should fix the errors.  :)

Nick F.

----------
From:   Chuck Reed[SMTP:creed@I-55.COM]
Sent:   Wednesday, December 17, 1997 8:30 PM
To:     CIRCLE@post.queensu.ca
Subject:         [CODE] Two lines trying to define a character

Anyone have any clue to why this gives a parse error (the lines with the
arrow produce the errors):

switch(blah) {
   case CASE_1:
->   char blah = "stupid man";
     break;
   case CASE_2:
->   char blah = "stupid man 2";
     break;
   default:
     log("I am a flying elephant.");
     break;
 }

Chuck


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+


     +------------------------------------------------------------+
     | 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