Here's something to get you started using-insertion-operators-and-controlling-format
c++ on VS19 - how can I display a table of number with cloumns aligned using cout
Keith Lovell
61
Reputation points
I want to display a scoreboard on the console with the columns lining up as shown in the example below.
Team 1 (2) 5 30 45 62
Long name team (0) 10 28 49 165
The team names are type string (at the moment) and the numbers are integers.
I am using the latest versions of c++ and Visual Studio.