editor

Although you can use a text editor, I use an IDE. With an IDE you can write code and compile, in one application. There are a number of IDEs to choose from, I recommend that you try a few and find one you like. They will all be suitable but you will find you like different aspects of one over the other. My IDE of choice is Visual Studio, here are some links to this and others that you may like to try:

Visual Studio

Code::Blocks