Categories:
Android (1)
Audio (7)
C/C++ (2)
Compression (7)
Database (6)
Document (14)
Email (3)
General (50)
Graphics (17)
Image (8)
Java (1)
Picture (1)
Presentation (7)
Programming (17)
Spreadsheet (11)
Video (8)
Web (13)
Windows (63)
XML (4)
Other Resources:
.CPP - File Extension for C++ Source Files
What is CPP? CPP, short name for C++, is used as the file extension for C++ Source files. .CPP files are text files that can be opened by Notepad or any text editors. See the sample .CPP file included below.
✍: FYIcenter.com
File Extension: .CPP
MIME Type: text/plain
File Content: C++ Source
.CPP files are C++ Source files, which contain C++ programming source codes. Here is a sample .CPP C++ Source file, mapInsert.cpp, containing some simple C++ statements:
#include <map> #include <iostream> using namespace std; class Data { public: Data(int val = 0) { mVal = val; } int getVal() const { return mVal; } void setVal(int val) {mVal = val; } protected: int mVal; }; int main(int argc, char** argv) { map<int, Data> dataMap; pair<map<int, Data>::iterator, bool> ret; ret = dataMap.insert(make_pair(1, Data(4))); if (ret.second) { cout << "Insert succeeded!\n"; } else { cout << "Insert failed!\n"; } ret = dataMap.insert(make_pair(1, Data(6))); if (ret.second) { cout << "Insert succeeded!\n"; } else { cout << "Insert failed!\n"; } return (0); }
.CPP C++ Source file sample: Click sample.cpp to download.
Since .CPP text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.
For for information on how to use .CPP C++ Source files, see links below:
2012-07-08, 6531👍, 0💬
Popular Posts:
What is EML? EML, short name for Email, is used as the file extension for Email Message files. .EML ...
What is VSD? VSD, short name for Visio Drawing, is used as the file extension for Visio Drawing file...
What is DOT? DOT, short name for Document Template, is used as the file extension for files in Micro...
What is BIN? BIN, short name for Binary, is used as the file extension for Binary Data files. .BIN f...
What is XLSB? XLSB, short name for Excel Spreadsheet Binary, is used as the file extension for sprea...