home *** CD-ROM | disk | FTP | other *** search
/ UnrealScript Game Programming All in One / UnrealScriptGameProgrammingAllInOne.iso / UGPAIOListings / UGPAIOListingsCh13 / CH13LIST / Classes / CH13_03LIST.uc < prev    next >
Encoding:
Text File  |  2006-03-07  |  572 b   |  26 lines

  1. // %PARAMETERS = "CH13LIST C:\UT2004"
  2. //Identifies the package
  3. //CH13_03LIST.uc
  4.  
  5. class CH13_03LIST extends Commandlet;
  6. function int Main(string Args){
  7.    local int iResult;
  8.    Log(Chr(10) $ "   CH13_03LIST" $ Chr(10));
  9.  
  10.    //Force the additions to be performed
  11.    iResult = 6 + (5 + 8) * (9 + 4) * 2;
  12.    Log("   A: " $ iResult);
  13.    
  14.    //Force additions again
  15.    iResult = (6 + 5 + 8) * 9 + (4 * 2);
  16.    Log("   B: " $ iResult)  ;
  17.  
  18.    //forced multiplications
  19.    iResult = (6 + 5) + (8 * 9) + (4 * 2);
  20.    Log("   C: " $ iResult);
  21.    return 0;
  22. }
  23.  
  24.  
  25.  
  26.