Home : File Types : CPP File

.CPP File Extension

File TypeC++ Source Code File

DeveloperN/A
Popularity
4.3 (111 Votes)
CategoryDeveloper Files
FormatText

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 may be a standalone program, containing all the code or one of many files referenced in a development project. CPP files must be compiled by a C++ compiler for the target platform before the code can be run.

More Information

Screenshot of a .cpp file in Apple Xcode 10.1

CPP file open in Apple Xcode 10.1

C++ is one of the most popular programming languages, making CPP files very common among developers. You can open and edit CPP with a text editor, such as Microsoft Notepad or Apple TextEdit.

However, programs that provide syntax highlighting, auto-completion, and other helpful tools are the most helpful for opening and editing CPP files. Some examples of these programs include Microsoft Visual Studio, Code Blocks, and Apple Xcode.

Common CPP Filenames

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

FREE DOWNLOAD
Open and view .CPP files with File Viewer Plus.
Programs that open CPP files
Updated 2/27/2019

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, Linux, and Android 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.