Modernes C++ programmieren

Okt 20, 2024

lst-0045-book.cpp

#include <iostream> 
#include <string>
using namespace std;            // (ERR) has a global effect; works, but is critical 
void calculate(int n) { 
    /* output divisors */
    cout << "divisors of " << n << " are:\n"; 
    // ...
} 
// ... also in other functions ...