Modernes C++ programmieren

Okt 20, 2024

lst-0004-book.cpp

try {
    cout << countWords(filename) << "\n";
} catch(std::exception &exc) {
    cout << "Error: " << exc.what() << "\n";
    throw; // rethrow
}