2. Define an enumeration type OPTION which contains first, second and third.
3. Use OPTION and SHAPE as row and column respectively and print the values in a matrix format for an array MATRIX
#include <iostream>using namespace std; int main() { /*Define an enumeration type named SHAPE containing values including sphere, rectangle, square, triangle and polygon.*/ enum SHAPE {sphere,rectangle,square,triangle,polygon}; //Define an enumeration type OPTION which contains first, second and third. enum OPTION {first,second,third}; /*Use OPTION and SHAPE as row and column respectively and print the values in a matrix format for an array MATRIX*/ int MATRIX[OPTION][SHAPE]; //incomplete cin.get(); return 0; }
No comments:
Post a Comment