I have a function void ShowList() that(theoretically) prints out my data into a neat column, but upon running i get a messy bunch of code. How would i go about using even spacing to display variables? Here is what i want the code to look like:
I cant seem to get the even spacing, the numbers usually just end up everywhere and the output looks crazy. Try to take into account that i have never used iomanip before, which is why im having problems getting this to work. Here is my attempt:
This will make it easier to see that you missed the setw() before "VehicleName" as well as the fact that you might want std::left before you insert anything into cout.