This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
cpp:templates [2019/05/14 10:24] gthanos |
cpp:templates [2020/05/30 18:45] gthanos |
||
|---|---|---|---|
| Line 29: | Line 29: | ||
| friend std:: | friend std:: | ||
| bool operator> | bool operator> | ||
| + | bool operator< | ||
| Student& | Student& | ||
| }; | }; | ||
| Line 96: | Line 97: | ||
| bool Student:: | bool Student:: | ||
| if(aem > st.aem) | if(aem > st.aem) | ||
| + | return true; | ||
| + | return false; | ||
| + | } | ||
| + | |||
| + | bool Student:: | ||
| + | if(aem < st.aem) | ||
| return true; | return true; | ||
| return false; | return false; | ||