How is C++ used in PLC programming?