1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex3.4/main.cpp

20 lines
328 B
C++

#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 ;
}