ComputersProgramming

File extensions for software codes: cpp is what?

This article is about the expansion and its importance for computer systems. Here, it would seem that such a special can be in the extension of the program file? But nevertheless, we hope that readers will be able to obtain important and interesting information for themselves. Ability to deal with extensions will serve a good service, as will be written below.

Which extension has C plus plus?

This programming language has its own designation of files. The cpp notation is a special extension used for files with C ++ code. They contain still not ready for use (not compiled) code, which you can edit and make edits without significant costs and failures in the program. With this extension, you can find out which file contains the text in "C" (programming language, which is very popular now).

Expansion and its importance in programming

Why do you need to expand the file name that is used by the computer? The fact is that the computer can handle many different types of files, both within the installed operating system, and with the help of additional software. An example of such software can be plug-ins installed in browsers, or interpreters of various programming languages that can handle running programs. Here's to recognize which interpreter should use the computer, which machine code to use to play the file, and extensions are needed. Machine code recognizes the type of file, this information will be provided to it by the existing requisites. So, the extension cpp is a file containing a document in C ++. After recognition, the interpreter will be able to open it, and the user will be able to work with the document.

What is the file name extension in general?

But let's talk about file names extensions from the point of view of computer science. Its purpose is already defined - it is necessary to identify the format or file type. Disconnect the extension from the file name using a period. Prior to the 95th, the "Winds" had a limit on the number of characters in the expansion: they could not be more than three. In modern systems, there is no such restriction. Even more, in modern file systems there can be files that have several types of extension. They all follow through the point. To such as cpp this, however, does not apply.

Such a gift developers often use scammers. Their malicious files, which they push through to users' computers, are often masked by malicious users for other programs, hide the main file extension (in viruses and different Trojans it differs from regular programs). It may even be that all the real files are hidden or deleted, and quite different ones are substituted instead. And it turns out that cpp is not a cpp at all, but a computer virus. A good defense against this type of scam is the command to display all types of extensions. You can enable this function in the Control Panel, just find the file properties and the required item. And then you can be calm for your C plus plus files, and be sure that you will not run a harmful program instead. Although you should always look at the extension of executable files.

The accuracy of the information indicated in the extension

Sometimes the extension does not accurately indicate the type of file and does not solve all possible problems that may arise during the use of various programs. So, the extension .txt, which is familiar to many, does not give information to the computer about which encoding the file is in. Therefore, when you open text files, you can see sheets of incomprehensible symbols. It is especially sad to see such a document state if it was used to write program code. In such cases, you should change the encoding of the files until the computer can provide adequate text. You can try to calculate the necessary encoding on the basis of incorrect symbols, but you need to know what encoding is relative to which result. For Vordovian files, the same extension is also used, which does not make it clear with which file the person is dealing with: a normal type or a formatted one. Also, the extension does not indicate which version is used, which is well manifested when trying to open versions of early documents in later processing environments, as is the case with Microsoft Office.

Other ways and possibilities to specify the format

There are other ways to specify the file format for the file system. But they are not common, and you probably never heard about them:

  • Saving information about the file format in the operating system itself. Disadvantages arise if you want to go to another computer and work with the same file.
  • The application of the so-called "magic numbers" method. This is when the file itself encodes a certain sequence of bytes, which indicates all the necessary information for the operation of the file. Has a certain potential, but cooperation of software producers is needed.
  • For some Unix systems, a function has been developed that leaves special notations at the beginning of the file intended for the interpreter.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.atomiyme.com. Theme powered by WordPress.