Statistics: Posted by Mentat — Sun Apr 20, 2008 5:17 pm
Statistics: Posted by Mentat — Thu Apr 17, 2008 7:26 am
Statistics: Posted by Kiyotewolf — Wed Apr 16, 2008 10:23 pm
Code:
TYPE dog 'some data age AS INTEGER weight AS INTEGER 'sets up weight, and sets age to 5 DECLARE CONSTRUCTOR(AS INTEGER)END TYPEDIM AS dog fluffy=dog(12)DIM AS dog kit=dog(15)PRINT "Fluffy's age is ";fluffy.agePRINT "Fluffy's weight is ";fluffy.weightPRINTPRINT "Kit's age is ";kit.agePRINT "Kit's weight is ";kit.weightSLEEPENDCONSTRUCTOR dog (someWeight AS INTEGER) weight = someWeight age=5END CONSTRUCTOR
Code:
Fluffy's age is 5Fluffy's weight is 12Kit's age is 5Kit's weight is 15
Statistics: Posted by Mentat — Wed Apr 16, 2008 5:02 pm
Code:
dim as short x, yx = 640y = 480print x * y * sizeof( integer )print cint(x) * y * sizeof( integer )'' OUTPUT:'' -81920'' 1228800
Statistics: Posted by coderJeff — Wed Apr 16, 2008 8:53 am
Statistics: Posted by Kiyotewolf — Wed Apr 16, 2008 1:16 am
Code:
DIM AS main something = main (640,480)'blah blah blahCONSTRUCTOR main (wdth_ AS SHORT, height_ AS SHORT) wdth = wdth_ 'both are SHORT height = height_ SCREENRES wdth, height 'buffer buffer = ALLOCATE (wdth * height * SIZEOF (INTEGER))END CONSTRUCTOR
Code:
DIM AS main something = main'blah blah blahCONSTRUCTOR main SCREENRES 640, 480 'buffer buffer = ALLOCATE (640 * 480 * SIZEOF (INTEGER))END CONSTRUCTOR
Statistics: Posted by Mentat — Tue Apr 15, 2008 2:55 pm