Page 1 of 1

question about struct construct in global code editor

PostPosted: Thu Jan 28, 2010 2:58 am
by linjichao
1.
click add button after define struct construct in global code editor,
the game editor crash... why?
sample:
typedef struct point
{
int x, y;
point(int _x, int _y)
{
x = _x;
y = _y;
}
}POINT
2.
no effect(function) use build-in function in global code editor? such as sprintf()...

Re: question about struct construct in global code editor

PostPosted: Thu Jan 28, 2010 11:16 am
by makslane
The structs in C doesn't have methods.
You can't define a function insede a struct.