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
cs257e17:proj2 [2017/03/03 17:39]
scarl
cs257e17:proj2 [2017/03/03 17:39] (current)
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.1488584359.txt.gz ยท Last modified: 2017/03/03 17:39 by scarl