New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Right is the default of Numbers, while Left is the default for Text Strings...
Right one first leaves the spaces, and then prints the characters, while it is the opposite in Left one...
Eg-
cout<<setw(10)<<100<<endl;
//Prints _______100 where _=space...
cout<<setw(10)<<"Hey"<<endl;
//Prints Hey_______ where _=space...