I don't really understand Lambda expressions very well. I created a list that takes in a struct "brute";
typedef struct brute{
int entry;
string secWord;
string secHex;
}decrypt;
typedef list<brute*>Unsolved;
I then try to use the for_each to iterate through the list.
char combo[] = {'a','a','b','c');
std::for_each(unsolved.begin(), unsolved.end(),[&combo](int i )
{
});
[&combo} is what I'm trying to capture. I have 3 questions: is "int i" the iterator for the list? How do i access a member that is inside my unsolved list? Lastly do i need to define that my return value should be a char[]?