oop-c/person.h
2018-06-04 09:06:12 -05:00

14 lines
287 B
C

#ifndef PERSON_H
#define PERSON_H
typedef struct Person Person;
struct Person {
int age;
char *name;
void (*happy_birthday)(Person *);
void (*print_age)(Person *);
};
//start
void init_person(Person *p,int age,char *name);
Person * new_person(int age,char *name);
#endif