14
Jan
Jan
eg: brackets, full stops, more brackets, equal signs
blue words
red words
green words
Answer:
The colored words vary from different text editors. I'll assume you use Visual Studio.
Blue words represent the basic data types like int, short, unsigned, long, char, float, double, etc. They also represent important terms like return, using, namespace, etc.
Red words represent strings like "Oh em gee I'm a totally constant string!"
Green words represent comments, compiler commands, etc. For example: /* OMG I'M TOTALLY A COMMENT */
Equal signs basically assign the value of a variable to another. For example, if A is 8 and you type B = A, B will be equal to 8.
Brackets can be used in arrays like so: myArray[2]
There is A LOT more to them then I've briefly explained here.
And I mean A LOT. ![]()
Answer:
Equal signs set a variable equal to the object pointed to. Ex) int a = 9, will make the variable "a" contain the value 9. Brackets are used to offset different classes, and items such as loops and if / then statements. The word colors are dependent upon the compiler you are using.
Answer:
Check out the book "How to Think Like a Computer Scientist" by Allen Downy. It uses Java to teach…well, how to think. What you're talking about is just syntax. You need to know how to figure out how things work and what steps to follow to know how to program. Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList
This entry was posted
on Monday, January 14th, 2008 at 10:17 pm and is filed under Programming.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or TrackBack URI from your own site.