here the source code:
Code:
/* Theater lobby snack bar program */
#include <stdio.h>
int main()
{
char c;
printf("Please make your treat selection:\n");
printf("1 - Beverage.\n");
printf("2 - Candy.\n");
printf("3 - Hot Dog.\n");
printf("4 - Popcorn.\n");
printf("Your choice:");
/* figure out what they typed in. */
c=getchar();
switch(c)
{
case '1':
printf("Beverage\nThat will be $8.00\n");
break;
case '2':
` printf("Candy\nThat will be $5.50\n");
break;
case '3':
printf("Hot Dog\nThat will be $10.00\n");
break;
case '4':
printf("Popcorn\nThat will be $7.50\n");
break;
default:
printf("That is not a proper selection.\n");
printf("I'll assume you're just not hungry.\n");
printf("Can I help whoever's next?\n");
}
return(0);
}
ok heres what im getting after i compile it :
Code:
[boxerboy@localhost ~]$ gcc lobby2.c -o lobby2
lobby2.c: In function ‘main’:
lobby2.c:26: error: stray ‘`’ in program
[boxerboy@localhost ~]$
please help on this to me it all looks rightso im not real sure.