Simple Function Creation
Uppgift
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.
Lösning
solution.cpp
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 3
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 5
Simple Function Creation
Svep för att visa menyn
Uppgift
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.
Lösning
solution.cpp
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 5Avsnitt 1. Kapitel 3
single