1. Trang chủ
  2. » Công Nghệ Thông Tin

C++ lecture 13

16 4 0

Đ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

Xem thêm:

TỪ KHÓA LIÊN QUAN

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

TÀI LIỆU LIÊN QUAN