函数

#include <iostream>
using namespace std;

void sayGoodby(string message = "Goodby!") {
    cout << message << endl;
}

sayGoodby();
//prints "Goodby!"

sayGoodby("see you");
//prints "see you"