Advertisement
keymasterviriya1150

InprogressPoint

Oct 9th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. typedef struct{
  4.     int x,y;
  5. }Point;
  6.  
  7. typedef struct {
  8.     int amount;
  9.     Point *point;
  10. }Path;
  11.  
  12. void point_input(){
  13.     printf("x,y");
  14. //  scanf("%d",p->x);
  15. //  scanf("%d",p->y);
  16. }
  17. void path_input(Path *p){
  18.     int i,amount;
  19.     printf("point amount");
  20.    
  21.     scanf("%d",amount);
  22.    
  23.     for(i=0 ;i< 2 ;i++){
  24.         point_input();
  25.     }
  26. }
  27. int main () {
  28.     Path p;
  29.     path_input(&p);
  30. //  printf("Path distance %2f\n",path_distance(&p));
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement