[C++] 纯文本查看 复制代码
#include "stdafx.h"
using namespace System;
enum class Pork { Ace, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King};
int main(array<System::String ^> ^args)
{
Pork pork = Pork::Jack;
Console::WriteLine(L"{0}", pork);
Console::ReadLine();
return 0;
}
[C++] 纯文本查看 复制代码
#include "stdafx.h"
using namespace System;
enum class Pork { Ace, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King};
int main(array<System::String ^> ^args)
{
Pork pork = Pork::Jack;
++pork;
Console::WriteLine(L"{0}", pork);
Console::ReadLine();
return 0;
}