Sorry about this, I'm very new to the c++ world. In all the books I've read and even the post I've found here, setw looks easy - but it's not working for me.
I'm trying to make "Fanzone Amusement Ticket Entry" sit in the, approximate, middle of a console app. I've been successfull by using spaces after the " and before the F but I know there's gotta be a better way.Code:cout <<setw(20) <<"Fanzone Amusement Ticket Entry\n";
When I use setw like above, I don't recieve any errors but "Fanzone Amusement Ticket Entry" stays to the far left.
Does setw not work with strings? If not, what will?
Any assistance is appreciated.