I got a c++ help. this my assignment i have to make two enumerated data type private variable that will store the name of a color.
two constructor one accepts no formal parameters and sets the flag colors to red and white.
second constructor accepts two formal parameters of the enumerated data type and sets the colors accordingly.
two public member function to set the colors of the flag
one function accepts two formal parameters enumerated data typs both colors.
two function accepts two formal parameters at least one enumerated using the first parameters as the color to set and second parameter as which color the first or second is to be modified.
the member function should be named SetFlagColors.
A third public member function that accepts two formal parameters and returns the currents colors of the flag in the variables passed in. use pass by reference to set values in the variables.
this member function should be named GetFlagColors.
in the main function put the appropriate code in place to decode and display to the user the current colors of the flag.
create two objects of the flag class, using each of the constructors and make the colors of the second object blue and gold.
use both member function to change the colors.
don't understand that shit because my english are bad. ok this what i have so far.
#include <iostream.h>
class flag
{
private:
enum name {blue, green};
enum name1 { orange, black};
flag( red,white);
public:
void Func1;
};
flag::flag()
{
color= (Red, White);
};
flag::flag()
{
const1= blue;
const2= black;
};
public:
void SetFlagColors
|