Hii,
I am relatively new to C ++ programming. I know that the functions cout, cin, etc. Defined in a standard namespace. But we also include the iostream header file to run the program.
So does it look like
namespace std
{
declaration of cout
declaration of cin
..... some other declarations etc....
}
and actual implementations inside istream and ostream ... ????
Or vice versa?...??? as....
namespace std
{
complete definition of cout
complete definition of cin
.........
}
and their signatures are simply placed in the iostream file, for example ...
iostream file
{
std :: cout
std :: cin
.....
}
Please provide any examples or links that you think will help me better understand.
Flash source
share