I have a C++ Testing.hh
header file in which I have declared this ENUM -
enum TestTypeOpt {TestingOne, TestingTwo};
Now in my Testing.cc
class I am trying to print out TestingOne
and TestingTwo
string from the enum as shown below
cout << "From command" << Testing::TestingOne << endl;
cout << "From command" << Testing::TestingTwo << endl;
But above cout prints out 0
and 1
somehow? I recently started working with C++ so little bit confuse.
Is there anything wrong I am doing? I am just trying to print actual string value from the enum class.