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
solution
99
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
void Message()
{
std::cout << "c<>definity" << std::endl;
}
int main()
{
Message();
}
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 1
99
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
___ ___()
{
std::___ << "___" << std::endl;
}
int main()
{
___();
}
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione