Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Simple Function Creation | Introduction
course content

Course Content

C++ Functions

Simple Function CreationSimple Function Creation

Task

Your task is to create a function and call this function in the main() function:

  • Create function signature:
    • specify std::string return type;
    • specify helloWorld as the name of the function
  • Return string "Hello World".
  • Call the function using its name.

Everything was clear?

Section 1. Chapter 3
toggle bottom row
course content

Course Content

C++ Functions

Simple Function CreationSimple Function Creation

Task

Your task is to create a function and call this function in the main() function:

  • Create function signature:
    • specify std::string return type;
    • specify helloWorld as the name of the function
  • Return string "Hello World".
  • Call the function using its name.

Everything was clear?

Section 1. Chapter 3
toggle bottom row
some-alt