The difference between \n and endl in C++
chevonie.com