📜  如何声明枚举变量 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:57.933000             🧑  作者: Mango

代码示例1
#include 
using namespace std;
enum direction {East, West, North, South};
int main(){
   direction dir;
   dir = South; 
   cout<