自学新手,一个程序运行不了,提示有错误,求大神看看
C语言三日通上的例子,检查了很多遍,找不到问题所在,求大神给看看#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
main ()
{
char choice;
char *a,*b,*c,*d,*e,*f,*g,*h;
a="MAIN MENU";
b="-----------------";
c="1-WordPerfect."
d="2-Lotus 1-2-3."
e="3-dBASE IV."
f="4-AutoCAD."
g="5-Exit to DOS."
h="Press the required number."
printf ("\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s,a,b,c,d,e,f,g,h);
choice=getche ();
switch (choice)
{
case'1':
printf ("\nWordPerfect is chosen.");
break;
case '2':
printf ("\nLotus 1-2-3 is chosen.");
break;
case'3':
printf ("\ndBASE IV is chosen.");
break;
case'4':
printf ("\nAutoCAD is chosen.");
break;
case'5':
exit (0);
default:
printf ("\nSorry, wrong key.");
}
printf ("\nThis is the end of the SWITCH.\nBack to the program.");
}