My program stops working after I input the first letter. Why??? It works fine in C++.


void lines(string a, string aa[]){

for(int b=0;b<a.length();b++)
cout<<aa[b]<<setw(5);

}...