http://i126.photobucket.com/albums/p98/justln/untitled3.jpg

Which codes do I use so that the answer is not out of place?
I tried using \t and setw but it doesn't work :(

setw works fine without the need for '\t'. Note that setw is required prior to each item to be formatted.

e.g. cout << left << setw(12) << "item1" << setw(12) << "item2" << endl;

Wow it works, thanks. I totally forgot about the "left". :D

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.