please suggest me how to position my output in tc++3 like

sa:1111 da:112212 d:4

i want that irrespective of the length of data after sa or da the distance between sa da d should be constant

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

Try the <iomanip> library or make your own padding function.

Answered in other forum site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.