.CPP File Extension
C++ Source Code File
|Developer||Standard C++ Foundation|
4.2 | 199 Votes
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.
C++ is one of the most popular programming languages, making CPP files very common among developers. It was created by Bjarne Stroustrup and was first released in 1985 to improve upon the C programming language.
It was initially standardized by the International Organization for Standardization (ISO) in 1998 and has undergone many improvements over the years. It is maintained by ISO/IEC JTC1 / SC22 / WG21 with the non-profit Standard C++ Foundation providing support for the C++ software developer community.
If you are a programmer, you most likely have worked with CPP files since C++ is used to develop many applications, such as games, web browsers, and database software. Some notable applications written completely or partially in C++ include Microsoft Office, Adobe Photoshop, MYSQL, Google Chrome, Mozilla Firefox, Autodesk Maya.
Common CPP Filenames
main.cpp - The source code filename typically used for the main() function of a C++ program, where the program begins execution.
How do I open a CPP file?
You can open and edit CPP files with various source code editors, including Microsoft Visual Studio Code (multiplatform), Code Blocks (multiplatform), and Apple Xcode (macOS). These applications provide syntax highlighting, auto-completion, and other helpful tools that are helpful for viewing and editing C++ code.
You can also open and edit CPP files with a plain text editor, such as Microsoft Notepad (bundled with Windows) or Apple TextEdit (bundled with macOS). However, these text editors do not provide helpful source code editing features.