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

Username:   Password: 
 RegisterRegister   
 dont get it...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xmdxtreme




PostPosted: Sat May 15, 2004 11:46 am   Post subject: dont get it...

what does -= and += mean?
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Sat May 15, 2004 12:04 pm   Post subject: (No subject)

+= is variable:= variable + something
so a+=1 is a:=a+1

same goes for -=
xmdxtreme




PostPosted: Sat May 15, 2004 12:38 pm   Post subject: (No subject)

o ok i got 1 more qestion how can i set my back ground color black and text green cause every time i do it only the background behind the text is black not the whole screen?
MyPistolsIn3D




PostPosted: Sat May 15, 2004 12:46 pm   Post subject: (No subject)

This help?
code:
var font := Font.New ("arial:18")
Draw.FillBox (0, 0, maxx, maxy, black)
Font.Draw ("This is how", 100, 100, font, brightgreen)
xmdxtreme




PostPosted: Sat May 15, 2004 12:47 pm   Post subject: (No subject)

yeah thats what i wanted thx! Laughing
xmdxtreme




PostPosted: Sat May 15, 2004 12:49 pm   Post subject: (No subject)

no thats no use sorry but i have to put everything in that. I know theres another way.
MyPistolsIn3D




PostPosted: Sat May 15, 2004 12:56 pm   Post subject: (No subject)

explain more what you are doing, or post your code to give me a better idea of what yer doing.
guruguru




PostPosted: Sat May 15, 2004 1:13 pm   Post subject: (No subject)

To set the background color use colorback(black) and to set the text color use color(green). The thing with colorback- it is the background of the text, not of the screen. An easy way to get around this is simply to clear the screen once after you set the background color.

code:

colorback(black)
cls

color(green)

put "Yay!!! The background is black and this text is green!!!"
Sponsor
Sponsor
Sponsor
sponsor
xmdxtreme




PostPosted: Sat May 15, 2004 1:39 pm   Post subject: (No subject)

thank you Laughing
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  [ 9 Posts ]
Jump to:   


Style:  
Search: