this is the program that i have so far. I am trying to finish it but i have some alternate test cases that i need to put into this program and im not sure how to do them properly.
if a user inputs
aaa-aa-aaaa
then i need to output
Problem: Only digits are allowed in a SSN
same goes for if they put a dash in the wrong spot or an underscore is used at the end this is the output i need.
Problem: The dashes are missing or are in the wrong spot.
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
Please use code tags, so one can comment on your code. It's the "<>" button next to your edit box.
Quick guess user_social = user_social.replace (5, 1, ""); It should be 6 instead of 5
this helps alot in the program working properly but i still have one if statement that is giving me a hard time.
I need to create an if statement to tell the user if the user inputs a letter of any sort that it will give the user a error and return to the top of the loop.