Apparently this, and some other combinations, make the text appear like that:
Code:cout << left << setw(20) << strc.name1 << ' ' << strc.name2; cout << right << strc.total4 << endl;While it should appear like that:Code:NAME SURNAME20
Tried many combinations, seems like I couldn't hit the jackpot. Couldn't find any references focused on a situation like this (separation).Code:NAME SURNAME 20
An alternative to this would be printing whitespaces from an array (can't use strings).