I'm doing an assignment, and oddly enough, one of the requirements is that the alignment of outputs fail when the output is more than four numbers long. I have gotten everything else to work, except for this. Attached is the relevant part of code, the expected output and the actual output.
#Need help with setw() Spacing for simple program
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
i can try yo solve ... it would be heplfull if you send setw() function
setw() is just what i took from iomanip library
i will go through it
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.