Variables and Types

From SDU
Revision as of 13:45, 18 April 2008 by Prohacx (Talk | contribs) (New page: Declaring variables int theInt; long theLong; string theString; object theObject; Assignment of variables int theInt, anotherInt; theInt = 0; anotherInt = 10; Casting string theString...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Declaring variables

int theInt; long theLong; string theString; object theObject;

Assignment of variables

int theInt, anotherInt; theInt = 0; anotherInt = 10;

Casting

string theString; theString = "5"; int theInt; theInt = (int)theString;

NULL

object theObject; theObject = NULL;