Question: in my header file for my degree program enum class i have enum class DegreeProgram {SECURITY, NETWORK, SOFTWARE}; i then created the object DegreeProgram degprogram
in my header file for my degree program enum class i have
"enum class DegreeProgram {SECURITY, NETWORK, SOFTWARE};"
i then created the object DegreeProgram degprogram in my student.h header file
how would i output the 3 values for in my student.cpp source file for the 3 different cases. i keep getting an error when i try to make the if statement
"
if(DegreeProgram degProgram = 0){
cout << "Software";
}
if(DegreeProgram degProgram = 1){
cout << "Network";
}
if(DegreeProgram degProgram = 2){
cout << "Security";
}
"
where is my error?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
