I'm trying to read input and store it into a character array. It works up to the point that I enter the stream of characters and press enter. Then the program breaks, and a windows pops up and says "Stack Around Input is Corrupted." I'm wondering why this runtime error comes up.
int i=0; //so far this does nothing
char input ;
cout<<"Welcome to the Text/Phone Number Converter!\n";
cout<<"This program will convert seven characters of text into their numeric equivalent. \nNumbers will be left as-is.\n";
cout<<"Please enter your desired string: \n";
cout<<"Please enter any key to continue.";
EDIT: I found the error. I created the character array for 5 characters, but tried to get seven. My bad.