Connecting Tech Pros Worldwide Forums | Help | Site Map

cursur position in c++

Newbie
 
Join Date: Jun 2007
Posts: 1
#1: Jun 22 '07
hi..
i want to now where is the corsur position in vector in c+

sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#2: Jun 22 '07

re: cursur position in c++


Quote:

Originally Posted by gowrishankarwagle

hi..
i want to now where is the corsur position in vector in c+

Hmm, have a look at this.
Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,382
#3: Jun 22 '07

re: cursur position in c++


There is no cursor in a vector.

What you do is create a vector<>::iterator object and whatever vector element this points at is where you are. If you have many iterators, you can be in many places at the same time.
Reply