#include #include #include using namespace std; int main(){ char str[50]; int i=0; cout<<"enter string"< S; string s = str; for(const char &c: s){ //why not working? S.push(c); } /* for(i=0; i