Annotation of mstools/samples/iostutor/exios201.cpp, revision 1.1

1.1     ! root        1: // exios201.cpp
        !             2: // A custom manipulator with an integer parameter
        !             3: #include <iostream.h>
        !             4: #include <iomanip.h>
        !             5: 
        !             6: ostream& fb( ostream& os, int l )
        !             7: {
        !             8:    for( int i=0; i < l; i++ )
        !             9:         os << ' ';
        !            10:    return os;
        !            11: }
        !            12: 
        !            13: OMANIP(int) fillblank( int l )
        !            14: {
        !            15:    return OMANIP(int) ( fb, l );
        !            16: }
        !            17: 
        !            18: void main()
        !            19: {
        !            20:     cout << "10 blanks follow" << fillblank( 10 ) << ".\n";
        !            21: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.