First: You can't use pointer ariphmetic on void pointers.
Second: You cannot increment array pointer.
Third: You are trying to store pointer in double.
first: Thank you for your time to comment on my post,
Second This is not a homework I just want to post this to discuss as you can see in my second post. I would like to make discussion with people who are better than me because I am a beginner in C++.
Yes EssGeEich I tried to compile them but I need some elaborate about how this code work. I thank you so much.