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

Kursinnehåll

C++ Introduction Video Course

C++ Introduction Video Course

1. Getting Started
2. Control Flow
3. Diving Into Functions
4. Strings and Characters
5. Arrays and Data Structures

book
Defining and Calling Functions

Uppgift

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.

Lösning

cpp

solution

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 1
toggle bottom row

book
Defining and Calling Functions

Uppgift

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.

Lösning

cpp

solution

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 1
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt