Skip to content
Novus Examples
cpp

What is a .cpp file?

text/x-c++src

C++ (.cpp) is a plain-text source file for the C++ programming language — a statically typed, compiled language that extends C with classes, templates, operator overloading, the Standard Template Library, and RAII. It is used for high-performance applications, game engines, and systems software.

How to use a .cpp file

Use an example .cpp file to test syntax highlighters, C++ compilers (g++, clang++), static analysers and formatters, and parser or language-detection tooling against real language constructs.

Convert a .cpp file to another format

← All file formats