#compiler hates it when i make an array of a structure

11 messages · Page 1 of 1 (latest)

true bear
#

using PixelGameEngine to diddle around with verlet integration, when i tried to make an array of a struct Mass, called objects[]. i defined its size as an int numObjects. i then iterated through this array with the usual for(int i = 0; i < numObjects; i++)... loop.

when i compiled, it threw many different errors at me, as seen below. the code snippet below also shows what im working with.
why...

tepid templeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

true bear
foggy marlin
#

C++ is in #1013107104678162544.

#

Also paste code as text.

true bear
#

wait where?

foggy marlin
#

It's clickable.

true bear
#

i see that now but it wasnt in my channels list when i was looking for it

#

that's why i had put it here

#

my bad, let me put it there real quick

tepid templeBOT
#

You can only close threads you own