Simple Function Creation
Tehtävä
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.
Ratkaisu
solution.cpp
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 3
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 5
Simple Function Creation
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
solution.cpp
Oliko kaikki selvää?
Kiitos palautteestasi!
Awesome!
Completion rate improved to 5Osio 1. Luku 3
single