PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/csharp/enum/example.h

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