#include <stdio.h>

int main()
{
  enum E { E_A, E_B};
  int x = 10;
  printf("%d, %d, %d, %d, %d, %d\n", E_A, E_B, 10, (E)10, x, (E)x);
}

結果

$ g++ --version
g++ (GCC) 3.4.1
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ./test
0, 1, 10, 0, 10, 10

とりあえず、新しいバージョンいれようかな…