Searching Stack for value and Storing in Temp Stack?

Your code has some problems(sorry to be rude): 1. You can use a std::vector which can achieve the same functionality as stack you want; 2. If you must choose to use a stack, use a std::stack which may outperformace than your own implementation; 3.

Based on your requirement, you should define a predicator using std::count_if algorithm or std::find_if which would make your code more compact and beautiful.

Jared I am pop() off the original stack if the while look fails from g. Color matching temp. Color – 123me Oct 15 at 14:15 I cannot use a vector or std::stack for educational purposes ... thats why I have tried to implement it this way – 123me Oct 15 at 14:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions