param1.cpp

URL: http://147.64.242.52/~bennett/class/cmsc2040/fall2026/notes/inherit/code/preClass/param1.cpp
 
#include <iostream>

using namespace std;

void Foo(int a = 0, double b = 3.14 , string c = "default");
//void Foo(int a, double b, string c);

int main() {
    Foo(1,2.3, "elll");
    Foo(2, 4.5);
    Foo(3);
    Foo();
    return 0;
}

void Foo(int a, double b, string c){
    cout << " in Foo, a = " << a << " b = " << b << " c = " << c << endl;
}