C++ iomanip Alignment
问题 I'm trying to align my output but for some reason I can't get it to how I want it, and it's really frustrating. The title won't align right. I don't know if I'm using setw() properly. #include <iostream> using std::cout; using std::endl; #include <string> using std::string; #include <assert.h> #include <iomanip> using std::setw; using std::right; using std::left; //Movie Struct to hold movie data struct MOVIES { string Title; //Name of movie int CriticRating; //Critic rating 1-100 int