Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

acessing a 1D array with row/col

Name: Anonymous 2009-04-21 8:27

imagePtr[i*cols + j]
where i and j are the row/col coordinates. this isn't right, i can't remember how else to do it. i know it's something LIKE this, just not exactly what, and google isn't cooperating. do i need to use the memory locations?

Name: Anonymous 2009-04-21 12:15

>>25
"My posts"? What are you, an EXPERT EXTRAPOLATOR?

The information given doesn't make more specific help possible. I'm just telling you that you're making the grave error of mistaking "it seems to work" for "it works". This just shows you're very inexperienced in C. If you want to act all pissed off at someone offering genuine help, be my guest. You've already failed at life.

----------
Posted from my iPhone

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List