I didnt include my code for my Stack on here. I want to say if string is not empty, then push each character onto stack. This isnt my whole code but just the part where Im stuck at. Do I have create a bool empty maybe?
Code:int main(){ Astack S; string s; cout <<"Enter data:"; getline(cin, s); if(!s.empty){ S.push(s); }