아까 질문을 올렸는데 아무래도 제 질문이 조금 부족했던거 같네요...
염치 불구하고 다시 올립니다
#include <iostream>
using namespace std;
int main()
{
char more;
do
{
cout << "ABC Company" << endl;
cout << "===========" << endl;
cout<< "Source (A,B,C): " << endl; //Choose the starting city among the three cities; A, B, or C,
cout << "More (Y/N)?" << endl;
cin >> more;
if ( more!='Y' && more!='y' && more!='N' && more!='n' )
continue;
cout << "More (Y/N)?" << endl;
} while ( more=='Y' || more=='y');
system("PAUSE");
return 0;
}
다른 부분은 그냥 시작 단계라 무시하셔도 되고요
빨간 부분이 그냥 뭐 해보려다가 막힌 부분입니다...
cin >> more; 한다음에
Y 나 y 넣으면 전체 반복, N 이나 n 넣으면 끝냄,
그리고 아무거나 다른거 치면은 "More (Y/N)?" 또 물어봐야 합니다 ㅠㅠ