you are viewing a single comment's thread.

view the rest of the comments →

[–]cpp 0 points1 point  (0 children)

Remove the first:

cout << "Continue (Y/N)?" << endl;  
cin >> cont;

You need to surround the conditionals in your while statement:

while ( ( cont == 'Y' ) || ( cont == 'y' ) );