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

Username:   Password: 
 RegisterRegister   
 Text Alignment
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jonos




PostPosted: Thu Dec 16, 2004 5:52 pm   Post subject: Text Alignment

That's right little 12 year olds, your favourite "leet" programmer is here with his amazing text alignments. Now I know it is kindof easy and whatnot but I have not touched my little Turing executable in a very long while and I came up with this in computer engineering when my teacher told me to stop screwing around the File.Copy function/whatever one calls it.

And here is it bitches:
code:

%Centering Text
var text : string

proc CentreText (var text : string)
    get text:*
    locate (1, (maxcol div 2) - (length (text) div 2))
    put text
end CentreText

CentreText (text)


code:

%Right text
var text : string

proc RightText (var text : string)
    get text:*
    locate (1, maxcol - length (text) + 1)
    put text
end RightText

RightText (text)


Yo, I know you think I'm stupid, but I don't need some arrogant 12-year old telling me what I already have come to accept. And I am more welcome than any of you on these message boards - basically because I have attempted to learn every language this website supports and have managed to at least succeed to output to the screen.

Out!
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Sat Dec 18, 2004 12:30 am   Post subject: (No subject)

Yo, thanks for replying to my first turing thread in 6 months.

Just say hi or something.
Tony




PostPosted: Sat Dec 18, 2004 1:44 am   Post subject: (No subject)

jonos wrote:
Yo, thanks for replying to my first turing thread in 6 months.

no problem Laughing you sound like a kid going though puberty though
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
cool dude




PostPosted: Sat Dec 18, 2004 12:17 pm   Post subject: (No subject)

tony wrote:
no problem Laughing you sound like a kid going though puberty though


nice one tony (lol)
Paul




PostPosted: Sat Dec 18, 2004 1:18 pm   Post subject: (No subject)

Haven't you heard? Jonos is constantly going through puberty, he's not going to leave it. Ever.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: