int main(){
stack<string> back_stack;
stack<string> fwd_stack;
string temp;
while(temp!="exit"){
cout<<"[1] Visit URL [2] Back [3]Forward"<<endl;
cin>>temp;
if(temp=="exit")
break;
if(temp=="1"){
cout<<"Enter URL: ";
cin>>temp;
back_stack.push(temp);
fwd_stack=stack<string>();
}
Hello everyone I'm wondering what the last statement : fwd_stack=stack<string>(); is doing here?
EDIT: I enclosed the entire program below in case it is needed/wanted!
Thank you,
Josheir