Deceptikon is correct; text echo is a function of the shell itself, not of the stream I/O (which is the same basic model for both the C I/O functions and the C++ iostream classes). The standard C/C++ I/O operations don't know or care where the text comes from, as it always reads it from the input buffer regardless of whether it is from a console, a file, or a pipe. By the time the C/C++ operations even know that there is data to process, the shell operations have already been completed.
It is true that there are functions to communicate with the shell and turn echo on or off, but those functions are always system-specific (and in some cases, shell-specific), and not a part of the standard library.