Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: About loadlibrary problem. Pin
norish21-May-10 23:21
norish21-May-10 23:21 
QuestionHow to check if 2 network shares are the same folder. Pin
Green Fuze21-May-10 11:57
Green Fuze21-May-10 11:57 
QuestionRe: How to check if 2 network shares are the same folder. Pin
David Crow21-May-10 17:28
David Crow21-May-10 17:28 
AnswerRe: How to check if 2 network shares are the same folder. Pin
Green Fuze22-May-10 2:39
Green Fuze22-May-10 2:39 
QuestionPage layout in word Pin
mamcp21-May-10 10:08
mamcp21-May-10 10:08 
QuestionStatusBar? [modified] Pin
Software200721-May-10 9:34
Software200721-May-10 9:34 
AnswerRe: StatusBar? Pin
Richard MacCutchan21-May-10 21:39
mveRichard MacCutchan21-May-10 21:39 
QuestionIterator gives error Pin
b-rad31121-May-10 9:28
b-rad31121-May-10 9:28 
Hi,

I'm using the following code in visual studio 2008:

std::vector< double >::iterator location;
location=std::find(vec.begin(),vec.end(),0.);


and I'm getting the error:
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::_Vector_iterator<_Ty,_Alloc>' (or there is no acceptable conversion)


My header files are as follows (I know all these aren't necessary for this small portion of code, but the rest of my code requires the additional headers):
#include "stdafx.h"

#include <algorithm>
#include <iostream>
#include <vector>

//#include <sstream>
#include <fstream>
#include <string>
#include <ostream>


Does anyone know how to fix this? Is it possibly a visual studio project setting Confused | :confused:

Thanks!
AnswerRe: Iterator gives error Pin
Nemanja Trifunovic21-May-10 9:53
Nemanja Trifunovic21-May-10 9:53 
GeneralRe: Iterator gives error Pin
b-rad31121-May-10 9:55
b-rad31121-May-10 9:55 
Questioneliminate zeros in vector of vectors [modified] Pin
b-rad31121-May-10 6:37
b-rad31121-May-10 6:37 
GeneralRe: eliminate zeros in vector of vectors Pin
Aescleal21-May-10 7:35
Aescleal21-May-10 7:35 
GeneralRe: eliminate zeros in vector of vectors Pin
b-rad31121-May-10 7:48
b-rad31121-May-10 7:48 
AnswerRe: eliminate zeros in vector of vectors Pin
Aescleal21-May-10 8:03
Aescleal21-May-10 8:03 
GeneralRe: eliminate zeros in vector of vectors Pin
b-rad31121-May-10 8:11
b-rad31121-May-10 8:11 
QuestionChanging window title in SDI,MDI Pin
Sakhalean21-May-10 2:52
Sakhalean21-May-10 2:52 
AnswerRe: Changing window title in SDI,MDI Pin
David Crow21-May-10 3:12
David Crow21-May-10 3:12 
GeneralRe: Changing window title in SDI,MDI Pin
Sakhalean21-May-10 3:26
Sakhalean21-May-10 3:26 
QuestionRe: Changing window title in SDI,MDI Pin
David Crow21-May-10 3:35
David Crow21-May-10 3:35 
AnswerRe: Changing window title in SDI,MDI Pin
Richard MacCutchan21-May-10 3:19
mveRichard MacCutchan21-May-10 3:19 
GeneralRe: Changing window title in SDI,MDI Pin
Sakhalean21-May-10 3:25
Sakhalean21-May-10 3:25 
GeneralRe: Changing window title in SDI,MDI Pin
Richard MacCutchan21-May-10 5:36
mveRichard MacCutchan21-May-10 5:36 
AnswerRe: Changing window title in SDI,MDI Pin
Hristo-Bojilov21-May-10 6:44
Hristo-Bojilov21-May-10 6:44 
AnswerRe: Changing window title in SDI,MDI Pin
mesajflaviu23-May-10 22:52
mesajflaviu23-May-10 22:52 
GeneralRe: Changing window title in SDI,MDI Pin
Sakhalean24-May-10 0:25
Sakhalean24-May-10 0:25 

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.