When I started learning C ++, I downloaded IDE Dev C++
with built-in gcc
and g++
. I first wrote programs and did not notice, but then I noticed that when I write any code for example:
#include <iostream> int main(){ using namespace std; float a = 2.34E+22f; float b = a + 1.0f; cout << "a = " << a << endl; cout << "b - a = " << b - a << endl; system("PAUSE"); return 0; }
Yes, and any other and click Compile and run the program is executed and when the program ends and main
returns 0
then its window closes and the file is created gmon.out
Did not know who to ask the system administrators or programmers, but when he was convinced that the file is not a compiler / IDE and the program itself after its execution decided to ask the programmers:
- Why is this file created ( gmon.out )?
- What is it created for?
- What makes it create and how to cancel the program’s creation of this file ?
PS I noticed that the file always weighs exactly 123KB and does not contain the beginning of the MZђ
type MZђ
as in the case of programs, and it contains the beginning of the type:
Ђ @ `дC й ydx < дю" к @
or
Ђ` @ °дC 8й ydx U дю" 4 @
and then the bits that the notebook considers as spaces / tabulation and if two programs output the same text, then the file they contain is the same ... It seems to me that everything that cout
brought out is written there ...