各位大侠帮小弟看看。。。谢谢
各位大侠,小弟我不才,刚刚开始学C++,今天按照书上的提示写的,可总是提示:if (senior)行错误,可是我和书上对过了,没有错啊,请各位大侠指点,谢谢!#include <iostream>
int main()
{
bool senior; // bool variable
senior = true; // set to true.
// Test the senior variable.
if (senior)
std::cout << "Senior citizen rates apply";
return 0;