This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Andrew,
> I haven't actually compiled up your program, but immediately alarm > bells are ringing when I see things like > > a = *(vec + i)
It's just a nonstandard way to write vec[i]. I mean, it's weird, but it's not actually wrong. :-)
for (size_t i = 0, length = vec.size(); i < length; ++i) { do something with vec[i]; }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |