小白向高手请教
#include "stdafx.h"
using namespace System;
enum class Face:char{Ace=14,Two=2,Three,Four,Five,Six,Seven,Eight,Nine,Ten,Jack,Queen,King};
int main(array<System::String ^> ^args)
{
Face card=Face::Ten;
++card;
Console::WriteLine(L"Card is {0}",card);
return 0;
}
最后输出是
Card is Jack
请问为什么不是
Card is 11 ???为什么是Jack而不是它的值11???