answersLogoWhite

0

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

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is extension part of c plus plus?

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


What c plus plus program must be saved in a text with the extension cpp?

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


Can you do projects in c and c plus plus?

Yes, you can do projects in C and in C++. Most compilers will recognize the source file by its extension, and adjust itself accordingly.


How many types of File Extension can be created from C plus?

Well, it depends on the length of the file-extension. If you settle for letters and numbers, it will be 36n, where n is the length.PS: your question has nothing to do with C or C++ or programming at all.


How do you Open a text file as C plus plus source code?

All C++ source code is is a text file with the .cpp extension. So if you save your code as *****.cpp then it is automatically C++ source code.


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.


Is it possible to save a C plus plus file with a different extension name?

Yes, but Windows won't recognize it as a c++ file.Save the file and then rename it afterward. It's still a c++ file, but it's got a different file extension. Windows recognizes file by their extension, not by their contents, so double-clicking on this renamed file will either prompt Windows to ask you what to open it in, or it will try to open the file in a program that likely won't understand it.You can rename the file again, with it's proper extension, to fix that.Answer: Of course. But if you are using Windows, and it has option 'hide filename extensions' set, you might encounter difficulties when you try to rename an existing file. Unset this option.


How do you save GIF extension file in Dev c plus plus?

The extension is actually immaterial. It merely serves to give the operating system a hint as to the file's content, allowing the file to be associated with a particular application, such as a GIF file viewer or an image editor application. In order to save a GIF file, you must first re-encode the image (assuming it is not already in GIF format), and save the output to a file with a GIF extension.


Why we use extension as cpp in c plus plus programs?

Source files use a .cpp file extension, while headers use .hpp. However, this is merely a convention. Most C++ programmers use .h for all headers, even though this convention implies a C-style header rather than a C++ header. Ultimately, the extension is immaterial. If the file can be included in other files, then it is a header, otherwise it is a source file.


Where did C plus plus program come from?

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


How do you add a new library for Dev C plus plus?

If you want to know about adding new header files, then it is simple. Write your functions in a file. Save that file with extension .h in the include directry. Now, you can include this file using the #include directive


Is it possible to learn c plus plus without learning c?

No. C++ is an extension of C. By the time you learn C++, you have learned C.