1: program enumtest (input, output);
   2: type
   3:     Color = (RED, GREEN, BLUE);
   4: 
   5: var c1, c2 : Color;
   6: 
   7: procedure P (c : Color);
   8: begin
   9:     writeln('c = ', ord(c):1);
  10: end;
  11: 
  12: begin
  13:     c1 := BLUE;
  14:     c2 := GREEN;
  15:     P(RED);
  16: end.
Last modified: 1985-03-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 404
Valid CSS Valid XHTML 1.0 Strict