So I have this struct:
struct foo{
DWORD fooB;
char *fooA;
}
and I have a variable DWORD bar;
, so how do I find if bar
matches any fooB
in my struct?
EDIT: my Code (currently)
#include <algorithm> // for. std::find
using namesapce std;
struct foo{
DWORD fooB;
char *fooA;
// .... Use this
}
vector <DWORD> foo;
if ( std::find(vector.begin(),
vector.end(), pIdToFind) !=
vector.end() )
// We found the item in the list, so let's just continue
else
// We haven't found it,