Thread: printf
View Single Post
  #6   Spotlight this post!  
Unread 17-02-2007, 00:01
BossOfTheGame BossOfTheGame is offline
Not the garbage man
FTC #0020 (The Rocketeers)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2003
Location: Clifton Park
Posts: 6
BossOfTheGame will become famous soon enough
Send a message via AIM to BossOfTheGame
Re: printf

Quote:
Originally Posted by steve d View Post
"you type in printf("Hello World); and that should do it.

That won't do it, you forgot closing quotes.
printf("this gets printed: first number = %d, second number here= %d\r",first_number, second_number);

When it sees the %, it prints the first_number, then the words agian till it sees the next %,.. The %d is a format descriptor, there is %s for strings,... google on printf format.
nice catch