Modernes C++ programmieren

Okt 23, 2024

lst-0323-book.cpp

Keyboard& getKeyboard() {
    cout << "  getKeyboard()\n";
    static Keyboard keyboard{}; // statische lokale Variable
    return keyboard;
}