cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Formatting oversized columns in output
Formatting oversized columns in output
Mar 8, 2018 at 11:10pm UTC
kada17
(19)
I am having an issue with oversized data for some of my columns. My normal output looks ok but when I have longer than normal data in the dot license or serial number fields, the output looks really bad.
The output:
https://pastebin.com/yhP8j0kw
My code for the output:
https://pastebin.com/7YhiXDcS
What can I do to fix this?
Last edited on
Mar 8, 2018 at 11:13pm UTC
Mar 8, 2018 at 11:53pm UTC
SamuelAdams
(1535)
erase the extra
http://www.cplusplus.com/reference/string/string/erase/
or put the extra on a 2nd line.
Topic archived. No new replies allowed.