C++ lecture 13

16 4 0
C++ lecture 13

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

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

Mục lục

    C++ Programming Lecture 13 Functions – Part V

    Functions with Empty Parameter Lists

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan