Hi, I used VB6 before to output file.
I set my output to file to tab(20) or tab(45) respectively.
In C++, how do I do this?
I am a new programmer in C++.
Could anyone enlighten me about this?
Thank you very much indeed!
Hi, I used VB6 before to output file.
I set my output to file to tab(20) or tab(45) respectively.
In C++, how do I do this?
I am a new programmer in C++.
Could anyone enlighten me about this?
Thank you very much indeed!
Look up how to use setw from the <iomanip> header.
They are not very easy to use, though.
You may find C's printf function or Boost.Format more convenient.
Thanks manasij7479, could you show me some examples of how to use setw, printf function or Boost.Format?
Ignore printf.
setw: setw - C++ Reference
Boost.Format: The Boost Format library - 1.55.0
Thanks Elysia for your suggestions & help.