I work in Ubuntu 14.04 x86, Sublime Text 2 + terminal
Strangeness was highlighted during the output of the line before a long operation. I used the allocation of a large amount of memory:
MyType* type; long int MyNumber = 3000000; cout << "Initialization... "; MyType* type = new MyType[MyNumber]; cout << "Done! << endl;
By all logic, the terminal output should be as follows:
Initialization...*пауза* Done!
But for some reason, the pause passes at the beginning, and two lines are output simultaneously.
*пауза* Initialization... Done!
After adding to the output of the first line of the endl
command endl
first inscription works as it should.
Initialization... *пауза* Done!
What is so special about the terminal?