Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Font
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Salman




PostPosted: Sun Jan 20, 2013 6:58 pm   Post subject: Font

What is it you are trying to achieve?
I'm trying to use the Draw.Font command to draw numbers. How do we use it to draw integer variables

What is the problem you are having?
<Answer Here>


Describe what you have tried to solve this problem
<Answer Here>


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>

Turing:


<Add your code here>



Please specify what version of Turing you are using
<Answer Here>
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Jan 20, 2013 7:49 pm   Post subject: RE:Font

But Font.Draw only draws strings. So you need to convert from an integer value (e.g. 42) to a string representation of how that number would look like (e.g. "42")
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Salman




PostPosted: Sun Jan 20, 2013 9:29 pm   Post subject: RE:Font

Would it be strint or intstr?
DemonWasp




PostPosted: Sun Jan 20, 2013 10:48 pm   Post subject: RE:Font

Look at the Turing help. One converts integers to strings and the other converts strings to integers. It should be fairly obvious which one you want.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: