C++ code is plain text. You can use anything that can generate plain text files for the compiler to eat. Notepad. Sublime. Visual Studio. KDevelop. cat at the command line with a redirection to file. Anything that produces a text file for a compiler to eat.