无参数

函数

#include <iostream>
using namespace std;

void sayGoodbye() {
    cout << "Goodbye!";
}

sayGoodbye();