mirror of
https://github.com/Andreabont/CExperiments.git
synced 2024-09-19 15:13:05 +00:00
19 lines
236 B
C++
19 lines
236 B
C++
|
#include <stdio.h>
|
||
|
|
||
|
extern "C" {
|
||
|
#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;
|
||
|
|
||
|
}
|