I am wondering if there is a function or command that can be used like precision where once called it will add a certain amount of spaces before all output until otherwise changed. Instead of having to put like setw(10) before each output
hmm i don't think so, but you could probably use tab to trick it, like this:
cout <<setw(10)<<"\t This would setw to ten then tab in.";
You could go...
#define coutw cout<<setw(10)
Then call coutw << "Hello"; to indent 10 spaces. Or even:
#define cout cout<<setw(10)
Then call cout as you normally would.
Thank you Eibro I will have to give that a try.