cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
If Statement with Pointers
If Statement with Pointers
Feb 3, 2017 at 4:25am
Feb 3, 2017 at 4:25am UTC
NICE8x
(19)
I'm going to make a new post so it is clear what I am asking
Last edited on
Feb 3, 2017 at 7:02pm
Feb 3, 2017 at 7:02pm UTC
Feb 3, 2017 at 4:51am
Feb 3, 2017 at 4:51am UTC
mbozzi
(3942)
Assuming array contiguity, just do some pointer arithmetic:
std::div((ptr - mat), width)
It's not entirely clear what everything is in the code snippet you've shown us, but something like that may be close to what you want.
Last edited on
Feb 3, 2017 at 4:51am
Feb 3, 2017 at 4:51am UTC
Topic archived. No new replies allowed.