home *** CD-ROM | disk | FTP | other *** search
- // %PARAMETERS = "CH09LIST C:\UT2004"
- //Identifies the package
- //CH09_03LIST.uc
-
- class CH09_03LIST extends Commandlet;
-
- function int main(string args){
-
- // #1
- // Declaration of integer identifiers
- // The scope is local
- //The byte data type
- local byte bFlagA;
- local byte bFlagB;
- //the bool data type
- local bool fFlagD;
- local bool fFlagE;
- //Foating decimal values
- local float rNumberA;
- local float rNumberB;
- local float rNumberC;
-
- // #2
- //Definition or initialization of the
- //identifiers
- //Assignment of values
- bFlagA = 255;
- bFlagB = 256; //converted to a zero - out of range
- //bFlagC = -33; //leads to an error to assign a negative
- //a byte
- fFlagD = false; //assign "false" to a bool
- fFlagE = true; //assign "true" to a bool
-
- rNumberA = 345.7865432;
- rNumberB = 345.78;
- rNumberC = 1000000.0;
-
- // #3
- // Alter and display values
- log("CH09_03LIST");
- log("==========byte Data Type============");
- log ("bFlagA (byte): " $ bFlagA);
- log ("bFlagA (byte): " $ bFlagB);
- log("==========bool Data Type============");
- log ("bFlagD (bool): " $ fFlagD);
- log ("bFlagE (bool): " $ fFlagE);
- //intDateOfRev = 1821;
- log("==========float Data Type============");
- log ( "rNumberA (float): " $ rNumberA );
- log ( "rNumberB (float): " $ rNumberB );
- log ( "rNumberC (float): " $ rNumberC );
- return 0;
- }
-
-
-
-
-