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-23 15:35

>>57
you just don't get /prog/. But let me enlighten you, I come here to troll and to generally act like an idiot. It's a great way to relax after a hard days coding. The reason no-one helps anyone is because the majority of problems posted here are trivial and solvable by not being an idiot (this may or may not include using google). If after ``visiting a few times '' you don't get that, you shouldn't be here or anywhere else on the internet (except maybe /pr/)

tl;dr
Like it or lump it

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