Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Defining and Calling Functions | Diving Into Functions
C++ Introduction Video Course

book
Defining and Calling Functions

Compito

Swipe to start coding

  • Define a void function.
  • Modify your void function to print a message of your choice.
  • Call your function in the main function.

Soluzione

cpp

solution

#include <iostream>

void Message()
{
std::cout << "c<>definity" << std::endl;
}

int main()
{
Message();
}

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 1
#include <iostream>

___ ___()
{
std::___ << "___" << std::endl;
}

int main()
{
___();
}

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

We use cookies to make your experience better!
some-alt