프로그램을 작성 중이며 아래의 기능을 제외한 모든 것이 올바르게 작동합니다. 첫 번째 루프에 대한 사용자 입력이 1-69 사이이고 두 번째 루프가 1-26 사이가되도록 최선을 다하는 것이 궁금합니다.사용자가 입력 할 수있는 숫자 범위를 설정하는 데 문제가 있습니다.
나는 do/while 루프는 오류가 발생했습니다.
//***********************************************
//Case 4 lets you input your own lottery numbers*
//***********************************************
void case4()
{
cout << numberprint << endl;
tickettop();
int array_pick[4];
int pballp;
for (int i = 0; i < 5; i++)
{
cout << evalue << i + 1 << space1;
do
{
cin >> array_pick[i];
} while (array_pick > 0 && array_pick <= 69); //Here is where I get an error for array_pick <= 69 (operand types are incompatible (int * and int))
}
for (int i = 0; i < 1; i++)
{
cout << eball;
cin >> pballp;
}
cout << endl << endl;
ofs << endl;
ticketbottom();
ofs << bar << box << bar << endl;
}
'while (! (array_pick> 0 && array_pick <= 69));'두 번째 시도가 표시되지 않습니다. – LogicStuff