QUICK question :) is this possible?

Started by
1 comment, last by DJS2 17 years, 2 months ago
Trying to setfill with a character from the ascii table but didnt have much luck. Is this possible? Gave me nothing:
cout << setfill (char(205)) << setw (10);
Gave me error:
cout << setfill ('char(205)') << setw (10);
Thanks
Advertisement
Quote:Original post by DJS2
Trying to setfill with a character from the ascii table but didnt have much luck. Is this possible?

Gave me nothing:
cout << setfill (char(205)) << setw (10);



What did you expect it to give? That's not supposed to print anything to the screen.

This, however:

cout << setfill (char(205)) << setw (10);
cout<<42<<endl;

behaves as expected.


ohhh, im sorry, i need at least one char to set the width before it huh? stupid me! thanks so much.

This topic is closed to new replies.

Advertisement