Click here to Skip to main content
15,897,273 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Convert habdle to object pointer Pin
Steve S3-Nov-03 22:44
Steve S3-Nov-03 22:44 
GeneralRe: Convert handle to object pointer Pin
BobAshforth17-Dec-03 7:10
BobAshforth17-Dec-03 7:10 
GeneralProblem with GUID Pin
Gabriel.P.G3-Nov-03 16:35
Gabriel.P.G3-Nov-03 16:35 
GeneralRe: Problem with GUID Pin
umeca743-Nov-03 21:24
umeca743-Nov-03 21:24 
GeneralRe: Problem with GUID Pin
Gabriel.P.G4-Nov-03 5:57
Gabriel.P.G4-Nov-03 5:57 
Generaliterator. Pin
WREY3-Nov-03 12:46
WREY3-Nov-03 12:46 
GeneralRe: iterator. Pin
Michael Dunn3-Nov-03 16:56
sitebuilderMichael Dunn3-Nov-03 16:56 
GeneralRe: iterator. Pin
WREY3-Nov-03 17:55
WREY3-Nov-03 17:55 
Clever!!

But you still didn't answer the question, because (let's suppose) 'v.begin' has the internal value of 306759. By assigning its internal value plus 525 (as follows)
vector<int>::iterator it = v.begin() + 525;
you are essentially adding 306795 to 525 giving 'it' the value of (525 + 306795) = 307320. Then you turned right around and did (307320 - 306795) which very logically gives you the difference of 525 (the same number you just added to 'v.begin()', the subtrahend).

IOW, you didn't give me the value of either the minuend nor the subtrahend. You simply gave me the numerical difference between them, which is the same number you added to one of them in the first place.

What I want to know is whether I am able to see the value of 'v.begin()' or 'it' after (let's say) 525 has been added to it.

Hmmm | :|

William

Fortes in fide et opere!
GeneralRe: iterator. Pin
Stuart Dootson3-Nov-03 21:13
professionalStuart Dootson3-Nov-03 21:13 
GeneralRe: iterator. Pin
ZoogieZork3-Nov-03 19:01
ZoogieZork3-Nov-03 19:01 
GeneralRe: iterator. Pin
Stuart Dootson3-Nov-03 21:16
professionalStuart Dootson3-Nov-03 21:16 
GeneralRe: iterator. Pin
Jörgen Sigvardsson6-Nov-03 13:50
Jörgen Sigvardsson6-Nov-03 13:50 
GeneralRe: iterator. Pin
Stuart Dootson6-Nov-03 22:22
professionalStuart Dootson6-Nov-03 22:22 
GeneralRe: iterator. Pin
ZoogieZork3-Nov-03 19:14
ZoogieZork3-Nov-03 19:14 
GeneralRe: iterator. Pin
WREY3-Nov-03 22:16
WREY3-Nov-03 22:16 
GeneralDlg's; Pin
Bo Hunter3-Nov-03 12:01
Bo Hunter3-Nov-03 12:01 
GeneralRe: Dlg's; Pin
Michael Dunn3-Nov-03 16:57
sitebuilderMichael Dunn3-Nov-03 16:57 
Questioncan i set the height of the item in CListViewCtrl and add a image for every item? Pin
HeartFriend2-Nov-03 21:07
HeartFriend2-Nov-03 21:07 
AnswerRe: can i set the height of the item in CListViewCtrl and add a image for every item? Pin
Dudi Avramov3-Nov-03 4:26
Dudi Avramov3-Nov-03 4:26 
AnswerRe: can i set the height of the item in CListViewCtrl and add a image for every item? Pin
Mil104-Nov-03 2:46
Mil104-Nov-03 2:46 
QuestionOLEDB issue new with MDAC 2.8? Pin
Steve S31-Oct-03 1:37
Steve S31-Oct-03 1:37 
GeneralDHTM binary behavior Pin
jackalwisdom30-Oct-03 22:38
jackalwisdom30-Oct-03 22:38 
GeneralReference to object using handle Pin
Member 60189830-Oct-03 18:24
Member 60189830-Oct-03 18:24 
GeneralContext Menu on web page shown ... Pin
byblostas30-Oct-03 11:11
byblostas30-Oct-03 11:11 
GeneralGetting notification on &lt;CR&gt; from Edit control Pin
janman30-Oct-03 0:49
janman30-Oct-03 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.