Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to add a constructor for your Blending class:

class Blending
{
public:
    Blending(void)
    {
        alpha = beta = key = defaultvalue = 0;
    }

// ...

};

You need to add a constructor for your Blending class:

class Blending
{
public:
    Blending(void)
    {
        alpha = beta = key = defaultvalue = 0;
    }

// ...

};

Please upvote my answer, and mark it as correct, if it helped you. Thank you.

You need to add a constructor for your Blending class:

class Blending
{
public:
    Blending(void)
    {
        alpha = beta = key = defaultvalue = 0;
    }

// ...

};

Please upvote my answer, and mark it as correct, if it helped you. Thank you.

I also recommend that you buy the book The C++ Programming Language by Stroustrup.

You need to add a constructor for your Blending class:

class Blending
{
public:
    Blending(void)
    {
        alpha = beta = key = defaultvalue = 0;
    }

// ...

};

Please upvote my answer, and mark it as correct, if it helped you. Thank you.

I also recommend that you buy the book The C++ Programming Language by Stroustrup.

Now, can I ask why you have duplicate variables outside of the class?