This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
|
cpp:function_templates [2020/05/18 15:22] gthanos |
cpp:function_templates [2020/05/18 15:25] gthanos [Templates συναρτήσεων με αριθμητικές παραμέτρους] |
||
|---|---|---|---|
| Line 102: | Line 102: | ||
| Ο κώδικας χρήσης της παραπάνω συνάρτησης θα μπορούσε να είναι ο εξής: | Ο κώδικας χρήσης της παραπάνω συνάρτησης θα μπορούσε να είναι ο εξής: | ||
| - | <code cpp maximum3.cpp> | + | <code cpp find_max3.cpp> |
| #include < | #include < | ||
| using namespace std; | using namespace std; | ||
| + | |||
| + | #include " | ||
| template < | template < | ||
| Line 114: | Line 116: | ||
| return max; | return max; | ||
| } | } | ||
| - | |||
| - | #include " | ||
| int main() { | int main() { | ||