"\n" endl difference

I read the book about C++, i am in the second chapter and i absolutely don´t understand this:

"One difference is that endl guarantees the output will be flushed (in,this case,immediately displayed onscreen) before the program moves on.You don’t get that guarantee with "\n" ,which means that it is possible on some systems in some circumstances a prompt might not be displayed until after you enter the information being prompted for."

Can you please explain me this difference and demonstrate it in example code?
Topic archived. No new replies allowed.