#include "stdio.h"
#include "stdlib.h"
#include "math.h"

void main()                                                                     //+++++++++++++++
{
struct c_comp{
        double rmz;
        double imz;
}c_comp;
int c_comp_product(a1,a2,c)
struct c_comp *a1,*a2,*c;
{
        double p,q,s;
        if(a1 == NULL || a2 == NULL || c == NULL)
        {
                printf("(c_comp_product)The c_comp pointer is NULL!\n");
                return(0);
        }
        a1->rmz=1;a1->imz=1;                                                    //+++++++++++++
        a2->rmz=2;a2->imz=2;                                                    //+++++++++++++
        p = a1->rmz*a2->rmz;
        q = a1->imz*a2->imz;
        s = (a1->rmz + a1->imz)*(a2->rmz + a2->imz);
        c->rmz = p - q;
        c->imz = s - p - q;
        printf("%f %f\n",c->rmz,c->imz);                                        //++++++++++++
        return(1);
}   
}
