236 votes
CPP File - What is a .cpp file and how do I open it?
Learn about .CPP files and view a list of programs that open them.
Languages
Overview
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 CPP file open in Microsoft Visual Studio Code 1.54 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 since undergone many improvements. 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 entirely or partially in C++ include Microsoft Office, Adobe Photoshop, MYSQL, Google Chrome, Mozilla Firefox, and Autodesk Maya. NOTE: C++ source code may also be saved as .C , .CC , and .CXX files, or as .HPP , .H , .HH , or .HXX header files.
Standard C++ Foundation 2021 Icon
Breadcrumbs
Previous / Next
In-Depth
.CPP File Extension
C++ Source Code File
| Developer | ISO C++ Standards Committee |
| Popularity |
4.1 | 236 Votes |
NEW: Open your .CPP file online with File Helper . View Online
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
CPP file open in Microsoft Visual Studio Code 1.54
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 since undergone many improvements. 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 entirely or partially in C++ include Microsoft Office, Adobe Photoshop, MYSQL, Google Chrome, Mozilla Firefox, and Autodesk Maya.
NOTE: C++ source code may also be saved as .C , .CC , and .CXX files, or as .HPP , .H , .HH , or .HXX header files.
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 to 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 assist you in 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.
C++ compilers
You can compile the C++ code stored in CPP files to code run on a computer with various free and commercial compilers . Some compilers include Microsoft Visual Studio (Windows), Eclipse IDE for C Developers (multiplatform), GNU Compiler Collection (multiplatform), and Apple Xcode (macOS).
Programs that open CPP files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
File Viewer Plus
—
Get it from Microsoft
Free +
Microsoft Visual Studio 2022
Free +
Microsoft Visual Studio Code
Free
Eclipse IDE for C Developers
Free
Code::Blocks
Free
Embarcadero Technologies C++ Builder
Free Trial
ES-Computing EditPlus
Free Trial
Bloodshed Software Dev-C++
Free
Any text editor
Mac
Apple Xcode
Free
Microsoft Visual Studio Code
Free
Code::Blocks
Free
Eclipse IDE for C Developers
Free
GNU Compiler Collection (GCC)
Free
MacroMates TextMate
Free
Freescale CodeWarrior Development Tools
Free Trial
Any text editor
Linux
Eclipse IDE for C Developers
Free
Microsoft Visual Studio Code
Free
Code::Blocks
Free
GNU Compiler Collection (GCC)
Free
Any text editor
Web
FileHelper.com
Free
Android
File Viewer for Android
Free +
Category: Developer Files
Updated: December 29, 2021