1. In Carbide C++ IDE, right click on the project in the project window, select menu "New" > "C++ Class", window of create a new class prompt.
Click Finish button to create the new class.
Then add code below into the cpp and add the definition into the head file.