Click here to Skip to main content
16,005,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHalt processing until button is clicked Pin
Simon Cornish8-Dec-05 5:40
Simon Cornish8-Dec-05 5:40 
AnswerRe: Halt processing until button is clicked Pin
toxcct8-Dec-05 5:55
toxcct8-Dec-05 5:55 
GeneralRe: Halt processing until button is clicked Pin
Simon Cornish8-Dec-05 6:40
Simon Cornish8-Dec-05 6:40 
GeneralRe: Halt processing until button is clicked Pin
toxcct8-Dec-05 21:09
toxcct8-Dec-05 21:09 
QuestionON_WM_MOUSEMOVE() in a ActiveX Pin
sweep1238-Dec-05 4:45
sweep1238-Dec-05 4:45 
QuestionVisual C++ compiler error C2143 Pin
Emb_Emb8-Dec-05 4:44
Emb_Emb8-Dec-05 4:44 
AnswerRe: Visual C++ compiler error C2143 Pin
toxcct8-Dec-05 5:03
toxcct8-Dec-05 5:03 
Questionstd::vector - issues Pin
ddmcr8-Dec-05 4:24
ddmcr8-Dec-05 4:24 
Hello guys ,

I have started studying STL and
I am experiencing following problem , here is my source code :

//...

//Prototype of the function printVector
template <class T>
void printVector(const std::vector< T > &integers2);


int _tmain(int argc, _TCHAR* argv[])
{

    std::vector< int > integers;

    integers.push_back(2);
	
    printVector(integers); //error here : see reference to function template instantiation 'void printVector<int>(const std::vector<_Ty> &)' being compiled

	
    return 0;
}

//Definition of printVector function
template < class T >
void printVector(const std::vector< T > &integers2)
{
	std::vector< T >::const_iterator constIterator;

	for(constIterator = integers2.begin();
	    constIterator != integers2.end; //2 errors here 
	    constIterator++)
	cout<<*constIterator<<' ' ;

}


I am getting 3 errors.

Does anybody have Idea what I am doing wrong ?

PS. I am using Visual Studio 2005



"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill


AnswerRe: std::vector - issues Pin
toxcct8-Dec-05 4:53
toxcct8-Dec-05 4:53 
GeneralRe: std::vector - issues Pin
ddmcr8-Dec-05 5:01
ddmcr8-Dec-05 5:01 
GeneralRe: std::vector - issues Pin
toxcct8-Dec-05 5:06
toxcct8-Dec-05 5:06 
QuestionFile locking problems?? Pin
chilituna8-Dec-05 3:05
chilituna8-Dec-05 3:05 
AnswerRe: File locking problems?? Pin
David Crow8-Dec-05 3:20
David Crow8-Dec-05 3:20 
QuestionAdd Picturebox into the Form Pin
JanakKoshia8-Dec-05 2:51
JanakKoshia8-Dec-05 2:51 
AnswerRe: Add Picturebox into the Form Pin
BlackDice8-Dec-05 6:09
BlackDice8-Dec-05 6:09 
QuestionNetworking Pin
Girish6018-Dec-05 1:41
Girish6018-Dec-05 1:41 
QuestionHow to get the real parent of a service process Pin
Vaskoder8-Dec-05 0:23
Vaskoder8-Dec-05 0:23 
AnswerRe: How to get the real parent of a service process Pin
Blake Miller8-Dec-05 10:12
Blake Miller8-Dec-05 10:12 
QuestionDisplay views on different screens dimension problem Pin
mikobi8-Dec-05 0:19
mikobi8-Dec-05 0:19 
AnswerRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 0:38
khan++8-Dec-05 0:38 
GeneralRe: Display views on different screens dimension problem Pin
mikobi8-Dec-05 1:00
mikobi8-Dec-05 1:00 
GeneralRe: Display views on different screens dimension problem Pin
Cedric Moonen8-Dec-05 1:24
Cedric Moonen8-Dec-05 1:24 
GeneralRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 1:32
khan++8-Dec-05 1:32 
GeneralRe: Display views on different screens dimension problem Pin
mikobi8-Dec-05 2:06
mikobi8-Dec-05 2:06 
GeneralRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 2:19
khan++8-Dec-05 2:19 

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.