Once upon a time, you might have developed for the Commodore 64 using the very machine itself. You’d use the chunky old keyboard, a tape drive, or the 1541 disk drive if you wanted to work faster.
There are many ways to write, compile, and debug your C/C++ code. One popular option is to use an IDE (Integrated Development Environment) which allows you to do all of those in one single program.