// (c) KreatoR '97 // arggggghh! chemical brothers: dig your own hole. // hey lethe! you owe me a protein drink! you know.. // btw, tell padre that you'll sign in the next, he'll be happy ;)) #include typedef struct {long re, im;} complex; complex horny_blonde(complex a, complex b) //f.. prototypes ;) { complex c; c.re=a.re+b.re; c.im=a.im+b.im; return(c); //yeah.. return whole struc.. could be done with ptrs, too } int main(void) { complex a,b; printf("Enter 2 complex numbers in format: x.re x.im\n"); scanf("%ld %ld %ld %ld", &a.re, &a.im, &b.re, &b.im); a=horny_blonde(a,b); printf("%ld %ld %ld %ld", a.re, a.im); return(0); //bc, are u happy? yeah.. good boy.. }