New Paste :: Recent Pastes:: Add Line Numbers
A Paste by Anonymous
{ char next; int x=1; while( !messy_file.eof()) { cout << x << \":\" << setw(3); ++x; messy_file.get(next); cout << next << endl; } cout << \"That is it. \"; }