How to convert a setw function into a tab keyword | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to convert a setw function into a tab keyword

3rd Apr 2018, 2:58 PM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
9 Answers
+ 2
cout<<setw(4)<<"22"<<setw(4);
7th Apr 2018, 9:16 AM
YUGRAJ
+ 2
you can count the number of spaces for 1 tab and then put this value as argument in determining let it be 4 then you can use cout<<setw(4);
5th Apr 2018, 11:29 AM
YUGRAJ
+ 2
I have already try this but it doesn't give me satisfaction Thanks for try
5th Apr 2018, 3:07 PM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
+ 2
what do you exactly want to do???
6th Apr 2018, 4:09 PM
YUGRAJ
+ 2
_ _ _ _ 22_ _ _ _
6th Apr 2018, 5:42 PM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
6th Apr 2018, 5:44 PM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
+ 2
That's I was asking that setw can we use later
7th Apr 2018, 10:32 AM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
+ 2
Thanks
7th Apr 2018, 10:32 AM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
+ 2
How was my code The problem is that graphics.h is not working
7th Apr 2018, 10:33 AM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar