Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Function Overloading Practice | Diving Into Functions
C++ Introduction Video Course
course content

Contenu du cours

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
Function Overloading Practice

Tâche

Swipe to start coding

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Solution

cpp

solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 4
toggle bottom row

book
Function Overloading Practice

Tâche

Swipe to start coding

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Solution

cpp

solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 4
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
We're sorry to hear that something went wrong. What happened?
some-alt