question about struct construct in global code editor

Non-platform specific questions.

question about struct construct in global code editor

Postby linjichao » Thu Jan 28, 2010 2:58 am

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()...
linjichao
 
Posts: 35
Joined: Fri Jan 22, 2010 10:13 am
Score: 0 Give a positive score

Re: question about struct construct in global code editor

Postby makslane » Thu Jan 28, 2010 11:16 am

The structs in C doesn't have methods.
You can't define a function insede a struct.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron