lets say I want the user to input a number and I want that number to cout with commas.
Example.
double attemptOne;
cout << "Enter a number: ";
cin >> attemptOne; //user inputs 10000.25
cout << endl << attemptOne; //I want to cout 10,000.25
I am new in c++ so please help me with out I am not talking about the decimal to be changed to a comma but for the program to know when the number is bigger than 999 to add commas like 1,000.25 10,000.25 100,000.25. I also do NOT want to use local