Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- typedef struct{
- int x,y;
- }Point;
- typedef struct {
- int amount;
- Point *point;
- }Path;
- void point_input(){
- printf("x,y");
- // scanf("%d",p->x);
- // scanf("%d",p->y);
- }
- void path_input(Path *p){
- int i,amount;
- printf("point amount");
- scanf("%d",amount);
- for(i=0 ;i< 2 ;i++){
- point_input();
- }
- }
- int main () {
- Path p;
- path_input(&p);
- // printf("Path distance %2f\n",path_distance(&p));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement