Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

#include<iostream.h>

using namespace std;

int main()
{

std::cout<<"test application:"<<std::endl;

return 0;
}


How std::cout and std::endl is working internally. How "test application" is printing in console application.

Regards,
Ranjith
Posted

Have a look into the include files.
cout finally maps into STDOUT, which is one of the io streams that maps to the console by default. It's a system call that takes care of this mapping.
Cheers
Andi
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Oct-13 3:22am    
My 5, but OP would probably needs explanation of how the operator is defined...
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900