Home : File Types : CPP File

.CPP File Extension

File TypeC++ Source Code File

4.3 (102 Votes)
CategoryDeveloper Files


This file is saved in a plain text format. You can open and view the contents of this file using a text editor.

What is a CPP file?

A CPP file is a source code file written in C++, a popular programming language that adds features such as object-oriented programming to C. It can be a standalone program or one of many files references in a development project. CPP files must be compiled by a C++ compiler for the target platform before run.

More Information

CPP files are most commonly edited with programs that provide syntax highlighting. You can still open CPP files using any text editor, but programs that provide syntax highlighting, auto completion, and other helpful tools are most often used.

C++ is one of the most popular programming languages and therefore CPP files are very common.

Common CPP Filenames

main.cpp - The source code filename typically used for the main() function of a C++ program, where the program begins execution.

Open and view .CPP files with File Viewer Plus.
Programs that open CPP files
Updated 11/30/2017

About CPP Files

Our goal is to help you understand what a file with a *.cpp suffix is and how to open it.

The C++ Source Code file type, file format description, and Mac, Windows, and Linux programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.