Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Force Justify in printf (in c/c++)

Name: Anonymous 2013-10-05 5:27

Hi all,

How would I print a
string   just  like
this    one   using  
printf    and     a 
specified    width?

(Hoping that the formatting will show properly.)

Name: Anonymous 2013-10-05 5:43

Use Scheme.

Name: Anonymous 2013-10-05 5:55

install gentoo

Name: Anonymous 2013-10-05 9:27

You'll probably  have to look into some library. I do not know of a way to do that built in with printf. It *might* be possible with cout, but again I doubt it.

Name: Anonymous 2013-10-05 9:28

>>4
Try this

*grabs dick*

Name: Anonymous 2013-10-05 10:06

progriders.org

Name: Anonymous 2013-10-05 10:34

printf("How would I print a\nstring just like\nthis one using\nprintf and a\nspecified width?");

Name: Anonymous 2013-10-05 17:34

print "How would I print a\nstring   just   like\nthis   one   using\nprintf   and   a\nspecified   width?"

Works in Python™

Don't change these.
Name: Email:
Entire Thread Thread List