Original code:
#include
#include
#include
class Path { public: Path(std::string path) { currentPath = path; } std::string getPath() const { return currentPath; } void cd(std::string newPath) { throw std::logic_error("Waiting to be implemented"); } private: std::string currentPath; }; #ifndef RunTests int main() { Path path("/a/b/c/d"); path.cd("../x"); std::cout << path.getPath(); } #endif
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.