endl是换行的你可以上机去体会一下!例如 cout<<"123"<cout<<"123"<123123cout<<"123";cout<<"123";//输出的是123123
endl就和C中的/n是一样的
endl换行的意思