answersLogoWhite

0


Best Answer

The .cpp extension is merely conventional; it is not required by the C++ standard. You can actually use any file extension you wish.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What c plus plus program must be saved in a text with the extension cpp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does a compiler interpret the difference between c and c plus plus?

from the extension of your file.If it has an extension of .cpp then it is a c++ programIf it's extension is .c, then it is a C program.


Where did C plus plus program come from?

C++ is an extension of C, and was invented by Bjarne Stroustrup.


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Where can one download MSN Plus?

MSN plus is a windows messenger extension. You can download the program for free from MSN. Most windows now come with this program built in but if not visit MSN.


What is extension part of c plus plus?

C++ Extension Name is... Syntax is: File Name.extension name. Ex: ankit.cpp


What must an opening brace in a C plus plus program be?

An opening brace must be terminated with a closing brace in C++. Braces are used to enclose code blocks and initialiser lists.


How to restart c plus plus program?

Exit the program and relaunch it.


What is the extension of a C plus plus file?

.h for headers, .cpp or .cc for sources


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.


What function must be in all c plus plus programs?

Every C++ program must have a main() function that returns an integer:int main(){// user-code goes here....// Main must return an integer to the calling program.// A non-zero value usually indicates an error occurred but// the exact meaning of the return value is user-defined.return( 0 );}


Can you program games with c plus plus?

Yes, you can program games with C++.


Is there an answer book for the A plus program?

The A Plus Program is an initiative, not a test. So no, there is no answer book.