// #include "stdafx.h" #include #include using namespace std; class Backtesting { private: string name; public: Backtesting(string nn) { name = nn; cout << "Test has started" << endl; } ~Backtesting() { cout << "Test has finished" << endl; } string GetName() { return name; } }; int main() { { Backtesting bt("Test1"); } Backtesting * pointer_bt = new Backtesting("Test2"); delete pointer_bt; system("pause"); return 0; }