I'm having trouble trying to truncate a character array. I tried to use cin.getline but that didn't work. I also tried to assign temp1 to temp2 but that also didn't work. Any suggestions would be greatly appreciated.
[code][/code]tagged by Salem
using namespace std;
cout<<"Please enter a password no more than 25 characters in length: ";
Shame about the lack of indentation though...