cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/21/00:26:30

Message-ID: <35134F49.C51C6867@geocities.com>
Date: Sat, 21 Mar 1998 00:25:29 -0500
From: Dan Chak <chakster AT geocities DOT com>
MIME-Version: 1.0
To: DJGPP <djgpp AT delorie DOT com>
Subject: "jump to case label" message; please help me!

I have the following code in a program of mine which (to me) seems to be
harmless.  However, I get an error with DJGPP that says "Error: Jump to
case label" for the line that reads "case 3:".  Can anyone help me
figure out why??

   int choice;
   do {
      choice = mainMenu->update();
      switch (choice) {
         case 2:
            BITMAP * card = load_pcx("10d.pcx", myPal);
            show_mouse(NULL);
            masked_blit(card, screen, 0, 0, 50, 50, 115, 177);
            show_mouse(screen);
            delete card;
            choice = 0;
            break;
         case 3:
            delete mainMenu;
            delay(2);
            break;
      }
   } while (!choice);

Thanks,
Dan Chak
chakster AT geocities DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019