Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

killswitch

C++ general question

This topic is 5989 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm fairly new to c++ and I'm trying to understand a block of code. LPCSTR IpAddress; PIP_ADDR_STRING pAddressList = &(Adapterinfo->IpAddressList); IpAddress=""; do { IpAddress=pAddressList->IpAddress.String; pAddressList = pAddressList->Next; cout << IpAddress; } while (pAddressList != NULL); In the following line, am I correct in assuming the pointer pAddressList gets the address of the IpAddress member of Adapterinfo? PIP_ADDR_STRING pAddressList = &(Adapterinfo->IpAddressList); Edited by - killswitch on January 31, 2002 2:08:32 PM

Share this post


Link to post
Share on other sites
Advertisement
Yes, it gets the address of the IpAddressList (not IpAddress, probably just a typo) member of Adapterinfo.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!