Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. typedef struct {
  5. int x,y;
  6. } Punkt;
  7.  
  8. Punkt p1;
  9. Punkt p2;
  10.  
  11.  
  12. void wypisz() {
  13. printf ("p1: x==%i, y==%i\np2: x==%i, y==%i", p1.x, p1.y, p2.x, p2.y);
  14. }
  15.  
  16. int main() {
  17.  
  18.  
  19.  
  20. p1.x=1;
  21. p1.y=1;
  22.  
  23. p2.x=2;
  24. p2.y=3;
  25.  
  26. wypisz();
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement