Any time you call a function the compiler basically takes the code within the function and places it where the function call is. Now, that isn't what actually happens, but conceptually it works (for basic functions like this anyway.) So what your compiler is actually seeing is this:
1 2 3 4 5
cout << cout<< "three blind mice" <<endl;
<< endl << cout<< "three blind mice" <<endl;
<< endl << cout<< "see how they run"<< endl;
<<endl << cout<< "see how they run"<< endl;
Thanks for the reply sorry first time learning c++ myself and yes I understood right after I posted. Thanks again for the reply you will see a lot of me now lol I am going to be working on this for a while.
Don't delete posts. It's annoying to people who answered them. We don't answer questions specifically for the asker, we answer them so anybody with the same or similar question has a resource to go to.