View Single Post
  #1 (permalink)  
Old April 26th, 2006, 03:30 PM
perstam perstam is offline
Authorized User
 
Join Date: Apr 2006
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Default Pointer reference

I have a reference coded like this

(*Ptr).last_name

for an array of struct where last_name is a member of the struct and I want to increment or decrement Ptr to point the another element of the array. What is the correct syntax?

I've tried (*Ptr++) and (*Ptr)++ and (*Ptr-1) and I keep getting syntax errors.

Sam Stamport
__________________
Sam Stamport
Reply With Quote