C++ · Strings and characters
A parts list labels each resistor as designator, ohms and watts, and here you build the program that reads one label apart.