I am wondering which is the difference between endl; and \n; .
I saw in the tutorials of C++ that in the early example it uses
but in the following sections (e.g. loops) it usesCode:cout << "Some kind of mesage\n";
How do I know which is the most appropriate/suitable for any situations ?Code:cout << "some king of message" << endl;