oop-c/person.h

14 lines
287 B
C
Raw Permalink Normal View History

2018-06-04 09:06:12 -05:00
#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