Originally Posted by
rags_to_riches
If you've been trying to do this "for a while, " then you've got some code that shows that and some errors and/or problems you'd like to address. Let's see both/all of those.
Code:
#include <iostream.h>
#include <string>
#include <conio.h>
main()
{
string date;
char answer; //either yes or no
bool check;
do {
cout << "\nplease enter the date in dd/mm/yyyy: "; //beginning of loop********************************
cin >> date;
cout << "\nIs this the correct date ? press y/n \n" << date << "\n\n";
cin >> answer;
switch (answer) {
case 'y':
cout << "\nThank you!!\n";
break;
}while (answer != 'y');
} getch();
}
ok then, if u insist.
here we go then.