Coursework for the Master's course Computational Data Science: Advanced Programming
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

19 lines
328 B

#include <iostream>
#include "Counter.hh"
using namespace std;
int main() {
Counter a ;
Counter b ;
cout << "there are now "
<< Counter::getCounter()
<< " Counter objects" << endl;
if (true) {
Counter c;
cout << " and now " << Counter::getCounter() ;
}
cout << " and now " << Counter::getCounter() << endl ;
}