N
Noah Spitzer-Williams
Hello guys,
I'm itinerating through my array using pointers in this fashion:
image is unsigned char image[]
do {
cout << "image byte is: " << *image << endl;
while (image++);
Now my problem is sometimes i don't just want to do image++, i want
to jump around in image but to know where i want to jump to, i need to
know which element i'm on (the 1st element image[0], 3rd, 54th?)
Is there anyway I can do this? Basically what I'm trying to do is
this:
while (image = (image + skip) % some int's)
So as you see, the location where I want to jump relies on where I
currently am.
Thanks!
- Noah
I'm itinerating through my array using pointers in this fashion:
image is unsigned char image[]
do {
cout << "image byte is: " << *image << endl;
while (image++);
Now my problem is sometimes i don't just want to do image++, i want
to jump around in image but to know where i want to jump to, i need to
know which element i'm on (the 1st element image[0], 3rd, 54th?)
Is there anyway I can do this? Basically what I'm trying to do is
this:
while (image = (image + skip) % some int's)
So as you see, the location where I want to jump relies on where I
currently am.
Thanks!
- Noah