Hi, I have a couple of doubts. 1. Can we use the standard C++ binary_search() on a stack<> ? 2. Suppose I declare
struct sig
{
int a;
int b;
};
sig temp[10];
stack<sig> trial;
Now I push a few "sig" elements to the "trial" stack. How do I access the second value (b) of the topmost element in the stack ?