View Single Post
  #2   Spotlight this post!  
Unread 26-01-2008, 11:43
JonathanLKS JonathanLKS is offline
Code::Blocks
FRC #0610 (The Coyotes)
Team Role: Leadership
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Toronto
Posts: 36
JonathanLKS will become famous soon enough
Send a message via MSN to JonathanLKS
Re: Suspicious pointer conversion

printf doesn't work that way
You need to have a string, even if your just printing a single int
so you'll need to write it like this
Code:
printf("%d\r\n", analog); //\r\n for newline
__________________

Team 610 [ Co-Leader | Head Programmer | Webmaster ]
We're attending: Greater Toronto Regional, San Diego Regional, Championship