This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Last revision Both sides next revision | ||
|
cpp:stl:intro [2023/05/29 16:15] gthanos [Η κλάση Student] |
cpp:stl:intro [2023/05/30 11:02] gthanos [Η κλάση Student] |
||
|---|---|---|---|
| Line 26: | Line 26: | ||
| friend std:: | friend std:: | ||
| bool operator> | bool operator> | ||
| + | bool operator< | ||
| Student& | Student& | ||
| }; | }; | ||
| Line 73: | Line 74: | ||
| 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; | ||