<<<Index>>>

unformatted I/O example


#include <iostream>

void main()

{

    int onechar; // char cannot represent EOF

    while ( ( onechar = std::cin.get() ) != EOF ) {

        std::cout.put( onechar );

    }

}

 

<<<Index>>>