mirror of
https://github.com/Andreabont/CExperiments.git
synced 2024-09-19 15:13:05 +00:00
16 lines
220 B
C
16 lines
220 B
C
|
#include <stdio.h>
|
||
|
#include "objects.h"
|
||
|
#include "point.h"
|
||
|
|
||
|
int main() {
|
||
|
|
||
|
struct Point* p = new(Point, 2, 2);
|
||
|
|
||
|
printf("Read Point(%d,%d)\n", p->x, p->y);
|
||
|
|
||
|
delete(p);
|
||
|
|
||
|
return 0;
|
||
|
|
||
|
}
|