LiveLab
You can run live examples by entering a URL such as https://liangcpp.pearsoncmg.com/LiveRunCpp/faces/LiveExample.xhtml?programName=Welcome for Listing 2.1 and https://liangcpp.pearsoncmg.com/LiveRunCpp/faces/LiveExample.xhtml?programName=ComputeAverage for Listing 2.3.
You can test programming exercises from https://liangcpp.pearsoncmg.com/CheckExerciseCpp/faces/CheckExercise.xhtml?chapter=1&programName=Exercise01_01.