PageRenderTime 30ms CodeModel.GetById 26ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/pike/enum/example.h

#
C++ Header | 13 lines | 8 code | 4 blank | 1 comment | 0 complexity | 795cc49558a51828cecb04f54f98fae8 MD5 | raw file
 1/* File : example.h */
 2
 3enum color { RED, BLUE, GREEN };
 4
 5class Foo {
 6 public:
 7  Foo() { }
 8  enum speed { IMPULSE, WARP, LUDICROUS };
 9  void enum_test(speed s);
10};
11
12void enum_test(color c, Foo::speed s);
13