// This program is not complete and will not compile int main() { cout << "Enter numbers to format, finish with Ctrl-D" << endl; while ( cin >> i ) { cout << "'" << add_thousands_separator(i) << "' == \"" << add_thousands_separator(i, '.') << '"' << endl; } cout << "Done." << endl; return 0; }