Guest User

zespolone

a guest
Oct 30th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct complexTag complex;
  5.  
  6. struct complexTag {
  7.     double re;
  8.     double im;
  9. };
  10.  
  11. void pokaz(complex zesp) {
  12.     printf("z = %lf + %lfi \n", zesp.re, zesp.im);
  13. }
  14.  
  15. int main(void) {
  16.     complex z;
  17.     z.re = 1;
  18.     z.im = 2;
  19.    
  20.     pokaz(z);
  21.    
  22.     system("pause");
  23.     return 0;
  24. }
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment