A vendor provides a very long namespace for its clock-control Hardware Abstraction Layer (HAL):
namespace VendorMegaChipCorporationUltraSeries9000_HardwareClockControlModule {
void enableClock() { cout << "CLOCK ENABLED"; }
void disableClock() { cout << "CLOCK DISABLED"; }
}
Your tasks are:
ClockHAL for the long vendor namespace.cmd from standard input:1 → Enable the clock using the full namespace name2 → Disable the clock using the namespace alias
Example 1
Input:
1
Output:
CLOCK ENABLED
Example 2
Input:
2
Output:
CLOCK DISABLED
Constraints:
cin, cout).
Input
1
Expected Output
CLOCK ENABLED