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.
 
 
 
 
 

19 lines
557 B

#include "calculator.h"
#include <iostream>
int main() {
std::cout << "=== DAP Debugging Example ===" << std::endl;
std::cout << "Set breakpoints in calculator.cpp, then press <leader>dc." << std::endl;
std::cout << std::endl;
Calculator calc;
calc.runDemo();
std::cout << std::endl;
std::cout << "Final accumulator value: " << calc.getAccumulator() << std::endl;
std::cout << "Total function calls: " << calc.getCallCount() << std::endl;
std::cout << "Program completed successfully." << std::endl;
return 0;
}