tc3不认识bool关键字?
我在TC3下编译郑莉教科书中的例子:#include <iostream.h>
void main(void)
{ int year;
bool IsLeapYear;
cout << "Enter the year: ";
cin >> year;
IsLeapYear = ((year % 4 == 0 && year % 100 != 0)||(year % 400 == 0));
if (IsLeapYear)
cout << year << "is a leap year" << endl;
else
cout << year << " is not a leap year"<< endl;
}
系统出现提示:undefined symbol:"bool"
难道时tc3不认识bool关键字?或者是别的原因?