.cpp C++-Quelltext

Text & Quellcode

MIME-Typtext/x-c++src
BeschreibungC++-Quelltext
KategorieText & Quellcode
Basiert auftext/x-csrc
Weitere Endungen.c, .c++, .cc, .cxx

Häufige Fragen

Was ist eine .cpp-Datei?

Eine .cpp-Datei ist ein Format vom Typ „C++-Quelltext“ (MIME-Typ text/x-c++src).

Womit öffne ich eine .cpp-Datei?

Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.

Woran erkennt man eine echte .cpp-Datei?

Für dieses Format ist keine feste Signatur am Dateianfang hinterlegt; erkannt wird es vor allem an der Endung. Unter Linux und macOS zeigt file --mime-type example.cpp den vermuteten Typ.

Auf welchem Format basiert .cpp?

Technisch ist eine .cpp-Datei ein Untertyp von „C-Quelltext“ (text/x-csrc). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.

Welcher MIME-Typ gehört zu .cpp?

Der MIME-Typ ist text/x-c++src. Im Apache-Webserver: AddType text/x-c++src .cpp; in nginx: types { text/x-c++src cpp; }.

Benachbarte Einträge