how can i print 3 values(without knowing their string\number size) in same column using cout?
i'm using these code:
cout <<"\n" << "show tokens\n";
for(unsigned int i=0;i<Tokens.size(); i++)
{
cout << "Token: " << Tokens[i].Token <<right<<setw(20-Tokens[i].Token.size())<< "Type: " << Tokens[i].Type <<setw(40) << fixed << "Position Line: " << i<<"\n";
}
but i know the 'token' size, but not the type size. so what you can advice me?