Thông tin tài liệu
C++ Programming Lecture 13 Functions – Part V The Hashemite University Computer Engineering Department (Adapted from the textbook slides) Outline Introduction Functions with empty parameter lists Inline functions Functions with default arguments Functions overloading Examples The Hashemite University Functions with Empty Parameter Lists Empty parameter lists Either writing void or leaving a parameter list empty indicates that the function takes no arguments void print(); or void print( void ); Function print takes no arguments and returns no value Calling a function that does not return any value inside cout statement is syntax error (cout
Ngày đăng: 12/10/2021, 21:08
Xem thêm: