2 Replies Latest reply: Sep 25, 2010 11:45 AM by etresoft
Joseph Booth Level 1 (5 points)
I'm converting a C++ terminal application from VS to xCode. The code executes perfectly; however, the formatting that was specified in VS is being rendered incorrectly in xCode.

Do the setprecision and setw() format manipulators get handled differently?

Example VS:

Text 5 15 More Text

Example xCode:

Text . 5 ... 15 ...... More Text

Notice that the columns being displayed are aligning at different intervals.

I'm just a bit confused as to why my spacing would be rendered differently. Maybe it's something to do with rendering the code in a Unix terminal vs. the "DOS" terminal?

Thanks for any information you can provide.


Joseph Booth

Message was edited by: Joseph Booth

//added periods to force separation of columns to show alignment difference.

Mac G5 2 GHz 500GB 3 GB RAM, Mac OS X (10.4.11)