Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- typedef struct complexTag complex;
- struct complexTag {
- double re;
- double im;
- };
- void pokaz(complex zesp) {
- printf("z = %lf + %lfi \n", zesp.re, zesp.im);
- }
- int main(void) {
- complex z;
- z.re = 1;
- z.im = 2;
- pokaz(z);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment