xcode运行环境不能自定义常量和函数原型?
#include <stdio.h>#include "hotel.h"
int main()
{
int nights;
double hotel_rate;
int code;
while((code = menu()) != QUIT)
{
switch(code)
{
case 1: hotel_rate = HOTEL1;
break;
case 2:hotel_rate = HOTEL2;
break;
case 3: hotel_rate = HOTEL3;
break;
case 4: hotel_rate = HOTEL4;
break;
default:hotel_rate = 0.0;
printf("Oops!\n");
break;
}
nights = getnights();
showprice(hotel_rate, nights);
}
printf("Thank you and goodbye. ");
return 0;
}
这个程序里#include "hotel.h"被提示错误,是设置问题还是运行环境不允许?