User Tools

Site Tools


cs257e17:proj2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
cs257e17:proj2 [2017/03/03 17:39]
scarl
cs257e17:proj2 [2017/03/03 17:39]
scarl
Line 8: Line 8:
    y = super.top();​    y = super.top();​
    ​super.pop();​    ​super.pop();​
-   z = (short) x + y;+   z = (short) ​(x + y)// cast because type of the result is int
 </​code> ​ </​code> ​
  
cs257e17/proj2.txt ยท Last modified: 2021/03/09 14:58 by scarl