Simple Function Creation
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 3
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 5
Simple Function Creation
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 5Seksjon 1. Kapittel 3
single