Click here to Skip to main content
15,921,279 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
General2 questions in wtl Pin
User 1605510-May-03 16:06
User 1605510-May-03 16:06 
GeneralRe: 2 questions in wtl Pin
Michael Dunn10-May-03 17:19
sitebuilderMichael Dunn10-May-03 17:19 
GeneralRe: 2 questions in wtl Pin
User 1605511-May-03 0:09
User 1605511-May-03 0:09 
GeneralRe: 2 questions in wtl Pin
Michael Dunn11-May-03 6:03
sitebuilderMichael Dunn11-May-03 6:03 
Generalread vector Pin
aguest10-May-03 13:53
aguest10-May-03 13:53 
GeneralRe: read vector Pin
Nick Parker11-May-03 2:59
protectorNick Parker11-May-03 2:59 
GeneralRe: read vector Pin
aguest11-May-03 5:39
aguest11-May-03 5:39 
GeneralRe: read vector Pin
Nick Parker11-May-03 12:40
protectorNick Parker11-May-03 12:40 
aguest wrote:
but how i can manipulat e thi siterator to read the vector.

You don't have to use an iterator, here is an example of not, I guessed what you class might look like:

#include <iostream>
#include <vector>

using namespace std;


struct Stuff
{
	int x, y, z;
};


int main()
{
	vector<Stuff*> vect;
	unsigned int index;


	Stuff* si  = new Stuff;
	Stuff* si2 = new Stuff;
	

	si->x = 2;
	si->y = 4;
	si->z = 6;

	si2->x = 1;
	si2->y = 3;
	si2->z = 5;

	vect.push_back(si);
	vect.push_back(si2);

	for(index = 0; index < vect.size(); index++)
	{
		cout << "X = " << vect[index]->x << endl;
		cout << "Y = " << vect[index]->y << endl;
		cout << "Z = " << vect[index]->z << "\n\n";
	}
	
	delete si;
	delete si2;

return 0;


}


-Nick Parker
GeneralATL COM object not callable in ASP Pin
cmak9-May-03 18:58
cmak9-May-03 18:58 
GeneralRe: ATL COM object not callable in ASP Pin
Brian Shifrin9-May-03 21:26
Brian Shifrin9-May-03 21:26 
GeneralRe: ATL COM object not callable in ASP Pin
Jörgen Sigvardsson13-May-03 9:46
Jörgen Sigvardsson13-May-03 9:46 
Generalstd::vector Pin
73Zeppelin9-May-03 15:59
73Zeppelin9-May-03 15:59 
GeneralRe: std::vector Pin
Tim Smith9-May-03 16:36
Tim Smith9-May-03 16:36 
GeneralRe: std::vector Pin
73Zeppelin9-May-03 17:36
73Zeppelin9-May-03 17:36 
GeneralRe: std::vector Pin
John M. Drescher9-May-03 17:00
John M. Drescher9-May-03 17:00 
GeneralRe: std::vector Pin
73Zeppelin9-May-03 17:41
73Zeppelin9-May-03 17:41 
GeneralMFC dialog containing ATL control that fires events... Pin
nebbish8-May-03 9:18
nebbish8-May-03 9:18 
GeneralIE Toolbar in ATL Pin
H.P.8-May-03 8:01
H.P.8-May-03 8:01 
GeneralFireing events from worker thread Pin
Sivakumar R8-May-03 2:08
Sivakumar R8-May-03 2:08 
GeneralRe: Fireing events from worker thread Pin
Ernest Laurentin8-May-03 4:22
Ernest Laurentin8-May-03 4:22 
Questionwriting data to a text file????????? Pin
xxhimanshu8-May-03 1:30
xxhimanshu8-May-03 1:30 
AnswerRe: writing data to a text file????????? Pin
Nick Parker10-May-03 11:38
protectorNick Parker10-May-03 11:38 
GeneralUsing new structure which inherits from Win struc in idl. file Pin
Nena19767-May-03 12:18
Nena19767-May-03 12:18 
GeneralUsing HashSet Pin
Alexandru Savescu7-May-03 2:05
Alexandru Savescu7-May-03 2:05 
GeneralRe: Using HashSet Pin
Joaquín M López Muñoz7-May-03 2:40
Joaquín M López Muñoz7-May-03 2:40 

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.