Hi guys, just wondering how i would remove an unwanted string element from a string stack.
Example:
much appreciated!Code:void remove_string(stack <string>& string_stack, string unwanted); int main() { stack <string> S; string X = "Bob"; string Y = "Bye"; string T = "Hi"; string U = "Hello"; S.push(X); S.push(Y); S.push(T); S.push(U); system("PAUSE"); return 0; } void remove_string(stack <string>& string_stack, string unwanted) { }