#include <stdio.h>
int main(void)
{
enum mobel{good,bad};
float good =5.5;
float bad =3.5;
float pirce = 0.0f;
int num =0;
printf("Please enter the mobel\"good or bad\" and the number of book!");
scanf("%c",mobel);
scanf("%d",num);
pirce = mobel * num;
printf("You choose mobel is %c,the number is %d,and the price is %.2f\n",mobel,num,pirce);
return 0;
}
帮我看看,这里哪里有问题,枚举函数不是很明白怎么用,给点提示,谢谢
[
本帖最后由 csbeng001 于 2011-9-28 14:24 编辑 ]