I don't know what is \n in the end of the sentence in cout ... for example
cout << "FIRE!\n";
I don't use it and I wanna know if it is something useful for programming.
Sure it is useful. It results in a carriage return so that the next statement sent to cout will appear on a separate line. It is useful when you want to add a line of text to stdout but you are not ready to flush the stream. In other words, this statement might not be displayed to the console immediately since there is no "<< std::endl" and that is fine in some cases.