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

Username:   Password: 
 RegisterRegister   
 The problem with my centering is...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rbb




PostPosted: Fri Apr 25, 2003 12:21 pm   Post subject: The problem with my centering is...

Alright I tried that code but when I used it it made the text go to the far right of the screen not the center. DO you know why this happens.
Sponsor
Sponsor
Sponsor
sponsor
Blade




PostPosted: Fri Apr 25, 2003 12:32 pm   Post subject: (No subject)

no, because theres something you are not doing right... like asok said man... every possible answer

copy and paste some of the code, heh... all mine work
jamez




PostPosted: Fri Apr 25, 2003 12:59 pm   Post subject: (No subject)

code:
var text : string := "THIS IS WHAT HE WANTS"
locate (maxrow div 2, (maxcol div 2) - (length (text) div 2))
put text
Blade




PostPosted: Fri Apr 25, 2003 2:15 pm   Post subject: (No subject)

dude... look at the locked one, questions already answered....
Prince




PostPosted: Fri Apr 25, 2003 7:40 pm   Post subject: (No subject)

speakin of centring, is there any type of code u can use if u wanna centre a title (in the blue bar above the run window) or do u jus hafta put in a bunch of spaces
Homer_simpson




PostPosted: Fri Apr 25, 2003 7:45 pm   Post subject: (No subject)

if u know the size of window (standar(640,400)) u can caculate the number of spaces to put to center the text out
Asok




PostPosted: Fri Apr 25, 2003 11:53 pm   Post subject: (No subject)

locked. Question has been answered multiple times, plz just copy and paste.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: