M
Michael Sgier
Hi
I want to get familiar with C/C++ with some base knowledge ot VB.NET. In
my init.cpp i want
to initalize my engineclass like so:
engine = new CSimpEngine();
but I get that error:
init.cpp:319: error: `engine ' undeclared (first use this function)
why? how do i need to declare engine? My questions might sound weird to
you but i'm only taking my
first C++ steps.
Secondly like that i destroy it?
CSimpEngine *engine = NULL;
Why i use "*" here? Where do i need to use the "*"?
on the other side i can access CSimpEngine functions like:
gameCamera->velocity += CVector(1.0, 0.0, 0.0)
Thanks for now and excuse my stupidity.
Regards Michael
I want to get familiar with C/C++ with some base knowledge ot VB.NET. In
my init.cpp i want
to initalize my engineclass like so:
engine = new CSimpEngine();
but I get that error:
init.cpp:319: error: `engine ' undeclared (first use this function)
why? how do i need to declare engine? My questions might sound weird to
you but i'm only taking my
first C++ steps.
Secondly like that i destroy it?
CSimpEngine *engine = NULL;
Why i use "*" here? Where do i need to use the "*"?
on the other side i can access CSimpEngine functions like:
gameCamera->velocity += CVector(1.0, 0.0, 0.0)
Thanks for now and excuse my stupidity.
Regards Michael