Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-13-2007, 07:35 PM   #1 (permalink)
ncjimn's Avatar
 
Super Techie

Join Date: Oct 2005

Posts: 470

ncjimn is on a distinguished road

Default printf formatting

ok quick question.

please someone help

what arguments do i need to print the following.

in one line a need a right-justified float which can take up to six characters, then i need 2 spaces and a left-justified string which can be up to 10 chars long.

this is C by the way.


EDIT: never mind i got it

Last edited by ncjimn; 04-13-2007 at 07:48 PM.
ncjimn is offline  
Old 04-13-2007, 08:00 PM   #2 (permalink)
Mr. Switch's Avatar
 
Monster Techie

Join Date: Jan 2005

Posts: 1,697

Mr. Switch is on a distinguished road

Send a message via AIM to Mr. Switch
Default Re: printf formatting


Mr. Switch is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Word formatting question poveren Windows Operating Systems and Software 1 04-13-2007 03:15 PM
formatting questions impguardman Windows Operating Systems and Software 3 04-03-2007 11:39 AM