Simple Function Creation
Task
Swipe to start coding
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
- specify
- Return string "Hello World".
- Call the function using its name.
Solution
solution.cpp
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5
Simple Function Creation
Swipe to show menu
Task
Swipe to start coding
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
- specify
- Return string "Hello World".
- Call the function using its name.
Solution
solution.cpp
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 5SectionΒ 1. ChapterΒ 3
single