none
下面这段代码请问哪里出错了? RRS feed

  • 问题

  •  

    #include <iostream>
    int main()
    {
     enum Days { Sunday,Monday,Tuesday,
      Wednesday,Thursday,Friday,Saturday };

     Days today;
     today = Monday;

     if (today == Sunday || today == Saturday)
      std::cout <<"\nI love weekends!\n";
     else
      std::cout <<"\nback to work!\n";

     return 0;
    }
    编译器提示有一个错误,在哪里啊?各位帮忙看看哦~

    2009年1月13日 3:14

答案

全部回复